401 lines
17 KiB
C#
401 lines
17 KiB
C#
namespace WorkCameraExport.Forms
|
||
{
|
||
partial class SettingsForm
|
||
{
|
||
/// <summary>
|
||
/// Required designer variable.
|
||
/// </summary>
|
||
private System.ComponentModel.IContainer components = null;
|
||
|
||
/// <summary>
|
||
/// Clean up any resources being used.
|
||
/// </summary>
|
||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||
protected override void Dispose(bool disposing)
|
||
{
|
||
if (disposing && (components != null))
|
||
{
|
||
components.Dispose();
|
||
}
|
||
base.Dispose(disposing);
|
||
}
|
||
|
||
#region Windows Form Designer generated code
|
||
|
||
/// <summary>
|
||
/// Required method for Designer support - do not modify
|
||
/// the contents of this method with the code editor.
|
||
/// </summary>
|
||
private void InitializeComponent()
|
||
{
|
||
lblTitle = new Label();
|
||
panelMain = new Panel();
|
||
grpGeneral = new GroupBox();
|
||
btnBrowsePath = new Button();
|
||
txtDefaultSavePath = new TextBox();
|
||
lblDefaultSavePath = new Label();
|
||
grpDownload = new GroupBox();
|
||
lblConcurrencyHint = new Label();
|
||
numConcurrency = new NumericUpDown();
|
||
lblConcurrency = new Label();
|
||
grpImage = new GroupBox();
|
||
lblQualityHint = new Label();
|
||
lblQualityValue = new Label();
|
||
trackQuality = new TrackBar();
|
||
lblQuality = new Label();
|
||
grpMaintenance = new GroupBox();
|
||
btnExportLogs = new Button();
|
||
btnCleanTemp = new Button();
|
||
chkAutoCleanTemp = new CheckBox();
|
||
panelButtons = new Panel();
|
||
btnReset = new Button();
|
||
btnCancel = new Button();
|
||
btnSave = new Button();
|
||
panelMain.SuspendLayout();
|
||
grpGeneral.SuspendLayout();
|
||
grpDownload.SuspendLayout();
|
||
((System.ComponentModel.ISupportInitialize)numConcurrency).BeginInit();
|
||
grpImage.SuspendLayout();
|
||
((System.ComponentModel.ISupportInitialize)trackQuality).BeginInit();
|
||
grpMaintenance.SuspendLayout();
|
||
panelButtons.SuspendLayout();
|
||
SuspendLayout();
|
||
//
|
||
// lblTitle
|
||
//
|
||
lblTitle.BackColor = Color.FromArgb(0, 122, 204);
|
||
lblTitle.Dock = DockStyle.Top;
|
||
lblTitle.Font = new Font("Microsoft YaHei UI", 14F, FontStyle.Bold);
|
||
lblTitle.ForeColor = Color.White;
|
||
lblTitle.Location = new Point(0, 0);
|
||
lblTitle.Name = "lblTitle";
|
||
lblTitle.Size = new Size(500, 50);
|
||
lblTitle.TabIndex = 0;
|
||
lblTitle.Text = "设置";
|
||
lblTitle.TextAlign = ContentAlignment.MiddleCenter;
|
||
//
|
||
// panelMain
|
||
//
|
||
panelMain.AutoScroll = true;
|
||
panelMain.BackColor = Color.White;
|
||
panelMain.Controls.Add(grpMaintenance);
|
||
panelMain.Controls.Add(grpImage);
|
||
panelMain.Controls.Add(grpDownload);
|
||
panelMain.Controls.Add(grpGeneral);
|
||
panelMain.Dock = DockStyle.Fill;
|
||
panelMain.Location = new Point(0, 50);
|
||
panelMain.Name = "panelMain";
|
||
panelMain.Padding = new Padding(20);
|
||
panelMain.Size = new Size(500, 450);
|
||
panelMain.TabIndex = 1;
|
||
//
|
||
// grpGeneral
|
||
//
|
||
grpGeneral.Controls.Add(btnBrowsePath);
|
||
grpGeneral.Controls.Add(txtDefaultSavePath);
|
||
grpGeneral.Controls.Add(lblDefaultSavePath);
|
||
grpGeneral.Dock = DockStyle.Top;
|
||
grpGeneral.Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Bold);
|
||
grpGeneral.Location = new Point(20, 20);
|
||
grpGeneral.Name = "grpGeneral";
|
||
grpGeneral.Padding = new Padding(15, 10, 15, 10);
|
||
grpGeneral.Size = new Size(460, 85);
|
||
grpGeneral.TabIndex = 0;
|
||
grpGeneral.TabStop = false;
|
||
grpGeneral.Text = "常规设置";
|
||
//
|
||
// lblDefaultSavePath
|
||
//
|
||
lblDefaultSavePath.AutoSize = true;
|
||
lblDefaultSavePath.Font = new Font("Microsoft YaHei UI", 9F);
|
||
lblDefaultSavePath.Location = new Point(15, 30);
|
||
lblDefaultSavePath.Name = "lblDefaultSavePath";
|
||
lblDefaultSavePath.Size = new Size(80, 17);
|
||
lblDefaultSavePath.TabIndex = 0;
|
||
lblDefaultSavePath.Text = "默认保存路径";
|
||
//
|
||
// txtDefaultSavePath
|
||
//
|
||
txtDefaultSavePath.Font = new Font("Microsoft YaHei UI", 9F);
|
||
txtDefaultSavePath.Location = new Point(15, 50);
|
||
txtDefaultSavePath.Name = "txtDefaultSavePath";
|
||
txtDefaultSavePath.Size = new Size(350, 23);
|
||
txtDefaultSavePath.TabIndex = 1;
|
||
//
|
||
// btnBrowsePath
|
||
//
|
||
btnBrowsePath.Font = new Font("Microsoft YaHei UI", 9F);
|
||
btnBrowsePath.Location = new Point(375, 49);
|
||
btnBrowsePath.Name = "btnBrowsePath";
|
||
btnBrowsePath.Size = new Size(70, 25);
|
||
btnBrowsePath.TabIndex = 2;
|
||
btnBrowsePath.Text = "浏览...";
|
||
btnBrowsePath.UseVisualStyleBackColor = true;
|
||
btnBrowsePath.Click += btnBrowsePath_Click;
|
||
//
|
||
// grpDownload
|
||
//
|
||
grpDownload.Controls.Add(lblConcurrencyHint);
|
||
grpDownload.Controls.Add(numConcurrency);
|
||
grpDownload.Controls.Add(lblConcurrency);
|
||
grpDownload.Dock = DockStyle.Top;
|
||
grpDownload.Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Bold);
|
||
grpDownload.Location = new Point(20, 105);
|
||
grpDownload.Name = "grpDownload";
|
||
grpDownload.Padding = new Padding(15, 10, 15, 10);
|
||
grpDownload.Size = new Size(460, 75);
|
||
grpDownload.TabIndex = 1;
|
||
grpDownload.TabStop = false;
|
||
grpDownload.Text = "下载设置";
|
||
//
|
||
// lblConcurrency
|
||
//
|
||
lblConcurrency.AutoSize = true;
|
||
lblConcurrency.Font = new Font("Microsoft YaHei UI", 9F);
|
||
lblConcurrency.Location = new Point(15, 35);
|
||
lblConcurrency.Name = "lblConcurrency";
|
||
lblConcurrency.Size = new Size(92, 17);
|
||
lblConcurrency.TabIndex = 0;
|
||
lblConcurrency.Text = "图片下载并发数";
|
||
//
|
||
// numConcurrency
|
||
//
|
||
numConcurrency.Font = new Font("Microsoft YaHei UI", 9F);
|
||
numConcurrency.Location = new Point(120, 33);
|
||
numConcurrency.Maximum = new decimal(new int[] { 10, 0, 0, 0 });
|
||
numConcurrency.Minimum = new decimal(new int[] { 1, 0, 0, 0 });
|
||
numConcurrency.Name = "numConcurrency";
|
||
numConcurrency.Size = new Size(60, 23);
|
||
numConcurrency.TabIndex = 1;
|
||
numConcurrency.Value = new decimal(new int[] { 5, 0, 0, 0 });
|
||
//
|
||
// lblConcurrencyHint
|
||
//
|
||
lblConcurrencyHint.AutoSize = true;
|
||
lblConcurrencyHint.Font = new Font("Microsoft YaHei UI", 8F);
|
||
lblConcurrencyHint.ForeColor = Color.Gray;
|
||
lblConcurrencyHint.Location = new Point(190, 36);
|
||
lblConcurrencyHint.Name = "lblConcurrencyHint";
|
||
lblConcurrencyHint.Size = new Size(175, 15);
|
||
lblConcurrencyHint.TabIndex = 2;
|
||
lblConcurrencyHint.Text = "(1-10,数值越大下载越快但占用更多资源)";
|
||
//
|
||
// grpImage
|
||
//
|
||
grpImage.Controls.Add(lblQualityHint);
|
||
grpImage.Controls.Add(lblQualityValue);
|
||
grpImage.Controls.Add(trackQuality);
|
||
grpImage.Controls.Add(lblQuality);
|
||
grpImage.Dock = DockStyle.Top;
|
||
grpImage.Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Bold);
|
||
grpImage.Location = new Point(20, 180);
|
||
grpImage.Name = "grpImage";
|
||
grpImage.Padding = new Padding(15, 10, 15, 10);
|
||
grpImage.Size = new Size(460, 90);
|
||
grpImage.TabIndex = 2;
|
||
grpImage.TabStop = false;
|
||
grpImage.Text = "图片设置";
|
||
//
|
||
// lblQuality
|
||
//
|
||
lblQuality.AutoSize = true;
|
||
lblQuality.Font = new Font("Microsoft YaHei UI", 9F);
|
||
lblQuality.Location = new Point(15, 30);
|
||
lblQuality.Name = "lblQuality";
|
||
lblQuality.Size = new Size(80, 17);
|
||
lblQuality.TabIndex = 0;
|
||
lblQuality.Text = "图片压缩质量";
|
||
//
|
||
// trackQuality
|
||
//
|
||
trackQuality.Location = new Point(15, 50);
|
||
trackQuality.Maximum = 100;
|
||
trackQuality.Minimum = 30;
|
||
trackQuality.Name = "trackQuality";
|
||
trackQuality.Size = new Size(350, 45);
|
||
trackQuality.TabIndex = 1;
|
||
trackQuality.TickFrequency = 10;
|
||
trackQuality.Value = 50;
|
||
trackQuality.Scroll += trackQuality_Scroll;
|
||
//
|
||
// lblQualityValue
|
||
//
|
||
lblQualityValue.AutoSize = true;
|
||
lblQualityValue.Font = new Font("Microsoft YaHei UI", 10F, FontStyle.Bold);
|
||
lblQualityValue.ForeColor = Color.FromArgb(0, 122, 204);
|
||
lblQualityValue.Location = new Point(375, 50);
|
||
lblQualityValue.Name = "lblQualityValue";
|
||
lblQualityValue.Size = new Size(40, 19);
|
||
lblQualityValue.TabIndex = 2;
|
||
lblQualityValue.Text = "50%";
|
||
//
|
||
// lblQualityHint
|
||
//
|
||
lblQualityHint.AutoSize = true;
|
||
lblQualityHint.Font = new Font("Microsoft YaHei UI", 8F);
|
||
lblQualityHint.ForeColor = Color.Gray;
|
||
lblQualityHint.Location = new Point(105, 31);
|
||
lblQualityHint.Name = "lblQualityHint";
|
||
lblQualityHint.Size = new Size(199, 15);
|
||
lblQualityHint.TabIndex = 3;
|
||
lblQualityHint.Text = "(30%-100%,数值越低文件越小但质量越差)";
|
||
//
|
||
// grpMaintenance
|
||
//
|
||
grpMaintenance.Controls.Add(btnExportLogs);
|
||
grpMaintenance.Controls.Add(btnCleanTemp);
|
||
grpMaintenance.Controls.Add(chkAutoCleanTemp);
|
||
grpMaintenance.Dock = DockStyle.Top;
|
||
grpMaintenance.Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Bold);
|
||
grpMaintenance.Location = new Point(20, 270);
|
||
grpMaintenance.Name = "grpMaintenance";
|
||
grpMaintenance.Padding = new Padding(15, 10, 15, 10);
|
||
grpMaintenance.Size = new Size(460, 110);
|
||
grpMaintenance.TabIndex = 3;
|
||
grpMaintenance.TabStop = false;
|
||
grpMaintenance.Text = "维护";
|
||
//
|
||
// chkAutoCleanTemp
|
||
//
|
||
chkAutoCleanTemp.AutoSize = true;
|
||
chkAutoCleanTemp.Font = new Font("Microsoft YaHei UI", 9F);
|
||
chkAutoCleanTemp.Location = new Point(15, 30);
|
||
chkAutoCleanTemp.Name = "chkAutoCleanTemp";
|
||
chkAutoCleanTemp.Size = new Size(135, 21);
|
||
chkAutoCleanTemp.TabIndex = 0;
|
||
chkAutoCleanTemp.Text = "自动清理临时文件";
|
||
chkAutoCleanTemp.UseVisualStyleBackColor = true;
|
||
//
|
||
// btnCleanTemp
|
||
//
|
||
btnCleanTemp.Font = new Font("Microsoft YaHei UI", 9F);
|
||
btnCleanTemp.Location = new Point(15, 60);
|
||
btnCleanTemp.Name = "btnCleanTemp";
|
||
btnCleanTemp.Size = new Size(130, 30);
|
||
btnCleanTemp.TabIndex = 1;
|
||
btnCleanTemp.Text = "立即清理临时文件";
|
||
btnCleanTemp.UseVisualStyleBackColor = true;
|
||
btnCleanTemp.Click += btnCleanTemp_Click;
|
||
//
|
||
// btnExportLogs
|
||
//
|
||
btnExportLogs.Font = new Font("Microsoft YaHei UI", 9F);
|
||
btnExportLogs.Location = new Point(160, 60);
|
||
btnExportLogs.Name = "btnExportLogs";
|
||
btnExportLogs.Size = new Size(100, 30);
|
||
btnExportLogs.TabIndex = 2;
|
||
btnExportLogs.Text = "导出日志";
|
||
btnExportLogs.UseVisualStyleBackColor = true;
|
||
btnExportLogs.Click += btnExportLogs_Click;
|
||
//
|
||
// panelButtons
|
||
//
|
||
panelButtons.BackColor = Color.FromArgb(245, 245, 245);
|
||
panelButtons.Controls.Add(btnReset);
|
||
panelButtons.Controls.Add(btnCancel);
|
||
panelButtons.Controls.Add(btnSave);
|
||
panelButtons.Dock = DockStyle.Bottom;
|
||
panelButtons.Location = new Point(0, 500);
|
||
panelButtons.Name = "panelButtons";
|
||
panelButtons.Size = new Size(500, 60);
|
||
panelButtons.TabIndex = 2;
|
||
//
|
||
// btnSave
|
||
//
|
||
btnSave.BackColor = Color.FromArgb(0, 122, 204);
|
||
btnSave.FlatAppearance.BorderSize = 0;
|
||
btnSave.FlatStyle = FlatStyle.Flat;
|
||
btnSave.Font = new Font("Microsoft YaHei UI", 10F, FontStyle.Bold);
|
||
btnSave.ForeColor = Color.White;
|
||
btnSave.Location = new Point(280, 12);
|
||
btnSave.Name = "btnSave";
|
||
btnSave.Size = new Size(100, 36);
|
||
btnSave.TabIndex = 0;
|
||
btnSave.Text = "保存";
|
||
btnSave.UseVisualStyleBackColor = false;
|
||
btnSave.Click += btnSave_Click;
|
||
//
|
||
// btnCancel
|
||
//
|
||
btnCancel.BackColor = Color.FromArgb(108, 117, 125);
|
||
btnCancel.FlatAppearance.BorderSize = 0;
|
||
btnCancel.FlatStyle = FlatStyle.Flat;
|
||
btnCancel.Font = new Font("Microsoft YaHei UI", 10F);
|
||
btnCancel.ForeColor = Color.White;
|
||
btnCancel.Location = new Point(390, 12);
|
||
btnCancel.Name = "btnCancel";
|
||
btnCancel.Size = new Size(100, 36);
|
||
btnCancel.TabIndex = 1;
|
||
btnCancel.Text = "取消";
|
||
btnCancel.UseVisualStyleBackColor = false;
|
||
btnCancel.Click += btnCancel_Click;
|
||
//
|
||
// btnReset
|
||
//
|
||
btnReset.Font = new Font("Microsoft YaHei UI", 9F);
|
||
btnReset.Location = new Point(20, 15);
|
||
btnReset.Name = "btnReset";
|
||
btnReset.Size = new Size(100, 30);
|
||
btnReset.TabIndex = 2;
|
||
btnReset.Text = "重置为默认";
|
||
btnReset.UseVisualStyleBackColor = true;
|
||
btnReset.Click += btnReset_Click;
|
||
//
|
||
// SettingsForm
|
||
//
|
||
AutoScaleDimensions = new SizeF(7F, 17F);
|
||
AutoScaleMode = AutoScaleMode.Font;
|
||
ClientSize = new Size(500, 560);
|
||
Controls.Add(panelMain);
|
||
Controls.Add(panelButtons);
|
||
Controls.Add(lblTitle);
|
||
Font = new Font("Microsoft YaHei UI", 9F);
|
||
FormBorderStyle = FormBorderStyle.FixedDialog;
|
||
MaximizeBox = false;
|
||
MinimizeBox = false;
|
||
Name = "SettingsForm";
|
||
StartPosition = FormStartPosition.CenterParent;
|
||
Text = "设置 - 随工水印相机导出工具";
|
||
panelMain.ResumeLayout(false);
|
||
grpGeneral.ResumeLayout(false);
|
||
grpGeneral.PerformLayout();
|
||
grpDownload.ResumeLayout(false);
|
||
grpDownload.PerformLayout();
|
||
((System.ComponentModel.ISupportInitialize)numConcurrency).EndInit();
|
||
grpImage.ResumeLayout(false);
|
||
grpImage.PerformLayout();
|
||
((System.ComponentModel.ISupportInitialize)trackQuality).EndInit();
|
||
grpMaintenance.ResumeLayout(false);
|
||
grpMaintenance.PerformLayout();
|
||
panelButtons.ResumeLayout(false);
|
||
ResumeLayout(false);
|
||
}
|
||
|
||
#endregion
|
||
|
||
private Label lblTitle;
|
||
private Panel panelMain;
|
||
private GroupBox grpGeneral;
|
||
private Button btnBrowsePath;
|
||
private TextBox txtDefaultSavePath;
|
||
private Label lblDefaultSavePath;
|
||
private GroupBox grpDownload;
|
||
private Label lblConcurrencyHint;
|
||
private NumericUpDown numConcurrency;
|
||
private Label lblConcurrency;
|
||
private GroupBox grpImage;
|
||
private Label lblQualityHint;
|
||
private Label lblQualityValue;
|
||
private TrackBar trackQuality;
|
||
private Label lblQuality;
|
||
private GroupBox grpMaintenance;
|
||
private Button btnExportLogs;
|
||
private Button btnCleanTemp;
|
||
private CheckBox chkAutoCleanTemp;
|
||
private Panel panelButtons;
|
||
private Button btnReset;
|
||
private Button btnCancel;
|
||
private Button btnSave;
|
||
}
|
||
}
|