414 lines
20 KiB
C#
Executable File
414 lines
20 KiB
C#
Executable File
namespace Shadowsocks.View
|
|
{
|
|
partial class ConfigForm
|
|
{
|
|
/// <summary>
|
|
/// 必需的设计器变量。
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// 清理所有正在使用的资源。
|
|
/// </summary>
|
|
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows 窗体设计器生成的代码
|
|
|
|
/// <summary>
|
|
/// 设计器支持所需的方法 - 不要
|
|
/// 使用代码编辑器修改此方法的内容。
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
this.components = new System.ComponentModel.Container();
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ConfigForm));
|
|
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
|
this.label5 = new System.Windows.Forms.Label();
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
this.EncryptionSelect = new System.Windows.Forms.ComboBox();
|
|
this.label3 = new System.Windows.Forms.Label();
|
|
this.label4 = new System.Windows.Forms.Label();
|
|
this.IPTextBox = new System.Windows.Forms.TextBox();
|
|
this.ServerPortTextBox = new System.Windows.Forms.TextBox();
|
|
this.PasswordTextBox = new System.Windows.Forms.TextBox();
|
|
this.ProxyPortTextBox = new System.Windows.Forms.TextBox();
|
|
this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
|
|
this.panel2 = new System.Windows.Forms.Panel();
|
|
this.OKButton = new System.Windows.Forms.Button();
|
|
this.MyCancelButton = new System.Windows.Forms.Button();
|
|
this.panel1 = new System.Windows.Forms.Panel();
|
|
this.contextMenu1 = new System.Windows.Forms.ContextMenu();
|
|
this.enableItem = new System.Windows.Forms.MenuItem();
|
|
this.configItem = new System.Windows.Forms.MenuItem();
|
|
this.editPACFileItem = new System.Windows.Forms.MenuItem();
|
|
this.aboutItem = new System.Windows.Forms.MenuItem();
|
|
this.menuItem3 = new System.Windows.Forms.MenuItem();
|
|
this.quitItem = new System.Windows.Forms.MenuItem();
|
|
this.panel3 = new System.Windows.Forms.Panel();
|
|
this.AddButton = new System.Windows.Forms.Button();
|
|
this.DeleteButton = new System.Windows.Forms.Button();
|
|
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
|
this.ServersListBox = new System.Windows.Forms.ListBox();
|
|
this.tableLayoutPanel1.SuspendLayout();
|
|
this.panel1.SuspendLayout();
|
|
this.panel3.SuspendLayout();
|
|
this.groupBox1.SuspendLayout();
|
|
this.SuspendLayout();
|
|
//
|
|
// tableLayoutPanel1
|
|
//
|
|
this.tableLayoutPanel1.AutoSize = true;
|
|
this.tableLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
|
this.tableLayoutPanel1.ColumnCount = 2;
|
|
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
|
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
|
this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0);
|
|
this.tableLayoutPanel1.Controls.Add(this.label2, 0, 1);
|
|
this.tableLayoutPanel1.Controls.Add(this.ProxyPortTextBox, 1, 4);
|
|
this.tableLayoutPanel1.Controls.Add(this.label4, 0, 4);
|
|
this.tableLayoutPanel1.Controls.Add(this.label3, 0, 2);
|
|
this.tableLayoutPanel1.Controls.Add(this.IPTextBox, 1, 0);
|
|
this.tableLayoutPanel1.Controls.Add(this.ServerPortTextBox, 1, 1);
|
|
this.tableLayoutPanel1.Controls.Add(this.PasswordTextBox, 1, 2);
|
|
this.tableLayoutPanel1.Controls.Add(this.label5, 0, 3);
|
|
this.tableLayoutPanel1.Controls.Add(this.EncryptionSelect, 1, 3);
|
|
this.tableLayoutPanel1.Location = new System.Drawing.Point(8, 21);
|
|
this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(5);
|
|
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
|
|
this.tableLayoutPanel1.Padding = new System.Windows.Forms.Padding(5);
|
|
this.tableLayoutPanel1.RowCount = 5;
|
|
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
|
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
|
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
|
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
|
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
|
this.tableLayoutPanel1.Size = new System.Drawing.Size(242, 141);
|
|
this.tableLayoutPanel1.TabIndex = 0;
|
|
//
|
|
// label5
|
|
//
|
|
this.label5.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
|
this.label5.AutoSize = true;
|
|
this.label5.Location = new System.Drawing.Point(11, 90);
|
|
this.label5.Name = "label5";
|
|
this.label5.Size = new System.Drawing.Size(57, 13);
|
|
this.label5.TabIndex = 8;
|
|
this.label5.Text = "Encryption";
|
|
//
|
|
// label1
|
|
//
|
|
this.label1.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
|
this.label1.AutoSize = true;
|
|
this.label1.Location = new System.Drawing.Point(17, 11);
|
|
this.label1.Name = "label1";
|
|
this.label1.Size = new System.Drawing.Size(51, 13);
|
|
this.label1.TabIndex = 0;
|
|
this.label1.Text = "Server IP";
|
|
//
|
|
// label2
|
|
//
|
|
this.label2.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
|
this.label2.AutoSize = true;
|
|
this.label2.Location = new System.Drawing.Point(8, 37);
|
|
this.label2.Name = "label2";
|
|
this.label2.Size = new System.Drawing.Size(60, 13);
|
|
this.label2.TabIndex = 1;
|
|
this.label2.Text = "Server Port";
|
|
//
|
|
// EncryptionSelect
|
|
//
|
|
this.EncryptionSelect.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
this.EncryptionSelect.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.EncryptionSelect.FormattingEnabled = true;
|
|
this.EncryptionSelect.ImeMode = System.Windows.Forms.ImeMode.NoControl;
|
|
this.EncryptionSelect.ItemHeight = 13;
|
|
this.EncryptionSelect.Items.AddRange(new object[] {
|
|
"table",
|
|
"rc4-md5",
|
|
"aes-256-cfb",
|
|
"aes-192-cfb",
|
|
"aes-128-cfb",
|
|
"bf-cfb",
|
|
"rc4"});
|
|
this.EncryptionSelect.Location = new System.Drawing.Point(74, 86);
|
|
this.EncryptionSelect.Name = "EncryptionSelect";
|
|
this.EncryptionSelect.Size = new System.Drawing.Size(160, 21);
|
|
this.EncryptionSelect.TabIndex = 8;
|
|
//
|
|
// label3
|
|
//
|
|
this.label3.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
|
this.label3.AutoSize = true;
|
|
this.label3.Location = new System.Drawing.Point(15, 63);
|
|
this.label3.Name = "label3";
|
|
this.label3.Size = new System.Drawing.Size(53, 13);
|
|
this.label3.TabIndex = 2;
|
|
this.label3.Text = "Password";
|
|
//
|
|
// label4
|
|
//
|
|
this.label4.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
|
this.label4.AutoSize = true;
|
|
this.label4.Location = new System.Drawing.Point(13, 116);
|
|
this.label4.Name = "label4";
|
|
this.label4.Size = new System.Drawing.Size(55, 13);
|
|
this.label4.TabIndex = 3;
|
|
this.label4.Text = "Proxy Port";
|
|
//
|
|
// IPTextBox
|
|
//
|
|
this.IPTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
|
this.IPTextBox.Location = new System.Drawing.Point(74, 8);
|
|
this.IPTextBox.Name = "IPTextBox";
|
|
this.IPTextBox.Size = new System.Drawing.Size(160, 20);
|
|
this.IPTextBox.TabIndex = 5;
|
|
this.IPTextBox.WordWrap = false;
|
|
//
|
|
// ServerPortTextBox
|
|
//
|
|
this.ServerPortTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
|
this.ServerPortTextBox.Location = new System.Drawing.Point(74, 34);
|
|
this.ServerPortTextBox.Name = "ServerPortTextBox";
|
|
this.ServerPortTextBox.Size = new System.Drawing.Size(160, 20);
|
|
this.ServerPortTextBox.TabIndex = 6;
|
|
this.ServerPortTextBox.WordWrap = false;
|
|
//
|
|
// PasswordTextBox
|
|
//
|
|
this.PasswordTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
|
this.PasswordTextBox.Location = new System.Drawing.Point(74, 60);
|
|
this.PasswordTextBox.Name = "PasswordTextBox";
|
|
this.PasswordTextBox.Size = new System.Drawing.Size(160, 20);
|
|
this.PasswordTextBox.TabIndex = 7;
|
|
this.PasswordTextBox.WordWrap = false;
|
|
//
|
|
// ProxyPortTextBox
|
|
//
|
|
this.ProxyPortTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
|
this.ProxyPortTextBox.Location = new System.Drawing.Point(74, 113);
|
|
this.ProxyPortTextBox.Name = "ProxyPortTextBox";
|
|
this.ProxyPortTextBox.Size = new System.Drawing.Size(160, 20);
|
|
this.ProxyPortTextBox.TabIndex = 9;
|
|
this.ProxyPortTextBox.WordWrap = false;
|
|
//
|
|
// notifyIcon1
|
|
//
|
|
this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
|
|
this.notifyIcon1.Text = "Shadowsocks";
|
|
this.notifyIcon1.Visible = true;
|
|
this.notifyIcon1.DoubleClick += new System.EventHandler(this.notifyIcon1_DoubleClick);
|
|
//
|
|
// panel2
|
|
//
|
|
this.panel2.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
this.panel2.AutoSize = true;
|
|
this.panel2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
|
this.panel2.Location = new System.Drawing.Point(142, 175);
|
|
this.panel2.Name = "panel2";
|
|
this.panel2.Size = new System.Drawing.Size(0, 0);
|
|
this.panel2.TabIndex = 1;
|
|
//
|
|
// OKButton
|
|
//
|
|
this.OKButton.DialogResult = System.Windows.Forms.DialogResult.OK;
|
|
this.OKButton.Location = new System.Drawing.Point(4, 4);
|
|
this.OKButton.Name = "OKButton";
|
|
this.OKButton.Size = new System.Drawing.Size(75, 23);
|
|
this.OKButton.TabIndex = 0;
|
|
this.OKButton.Text = "OK";
|
|
this.OKButton.UseVisualStyleBackColor = true;
|
|
this.OKButton.Click += new System.EventHandler(this.OKButton_Click);
|
|
//
|
|
// MyCancelButton
|
|
//
|
|
this.MyCancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
|
this.MyCancelButton.Location = new System.Drawing.Point(86, 4);
|
|
this.MyCancelButton.Name = "MyCancelButton";
|
|
this.MyCancelButton.Size = new System.Drawing.Size(75, 23);
|
|
this.MyCancelButton.TabIndex = 1;
|
|
this.MyCancelButton.Text = "Cancel";
|
|
this.MyCancelButton.UseVisualStyleBackColor = true;
|
|
this.MyCancelButton.Click += new System.EventHandler(this.CancelButton_Click);
|
|
//
|
|
// panel1
|
|
//
|
|
this.panel1.AutoSize = true;
|
|
this.panel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
|
this.panel1.Controls.Add(this.MyCancelButton);
|
|
this.panel1.Controls.Add(this.OKButton);
|
|
this.panel1.Location = new System.Drawing.Point(275, 247);
|
|
this.panel1.Margin = new System.Windows.Forms.Padding(0);
|
|
this.panel1.Name = "panel1";
|
|
this.panel1.Size = new System.Drawing.Size(164, 30);
|
|
this.panel1.TabIndex = 1;
|
|
//
|
|
// contextMenu1
|
|
//
|
|
this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
|
|
this.enableItem,
|
|
this.configItem,
|
|
this.editPACFileItem,
|
|
this.aboutItem,
|
|
this.menuItem3,
|
|
this.quitItem});
|
|
//
|
|
// enableItem
|
|
//
|
|
this.enableItem.Index = 0;
|
|
this.enableItem.Text = "Enable";
|
|
this.enableItem.Click += new System.EventHandler(this.EnableItem_Click);
|
|
//
|
|
// configItem
|
|
//
|
|
this.configItem.Index = 1;
|
|
this.configItem.Text = "Options...";
|
|
this.configItem.Click += new System.EventHandler(this.Config_Click);
|
|
//
|
|
// editPACFileItem
|
|
//
|
|
this.editPACFileItem.Index = 2;
|
|
this.editPACFileItem.Text = "Edit PAC File...";
|
|
this.editPACFileItem.Click += new System.EventHandler(this.EditPACFileItem_Click);
|
|
//
|
|
// aboutItem
|
|
//
|
|
this.aboutItem.Index = 3;
|
|
this.aboutItem.Text = "About";
|
|
this.aboutItem.Click += new System.EventHandler(this.AboutItem_Click);
|
|
//
|
|
// menuItem3
|
|
//
|
|
this.menuItem3.Index = 4;
|
|
this.menuItem3.Text = "-";
|
|
//
|
|
// quitItem
|
|
//
|
|
this.quitItem.Index = 5;
|
|
this.quitItem.Text = "Quit";
|
|
this.quitItem.Click += new System.EventHandler(this.Quit_Click);
|
|
//
|
|
// panel3
|
|
//
|
|
this.panel3.AutoSize = true;
|
|
this.panel3.Controls.Add(this.DeleteButton);
|
|
this.panel3.Controls.Add(this.AddButton);
|
|
this.panel3.Location = new System.Drawing.Point(12, 207);
|
|
this.panel3.Margin = new System.Windows.Forms.Padding(0);
|
|
this.panel3.Name = "panel3";
|
|
this.panel3.Size = new System.Drawing.Size(164, 30);
|
|
this.panel3.TabIndex = 5;
|
|
//
|
|
// AddButton
|
|
//
|
|
this.AddButton.Location = new System.Drawing.Point(4, 4);
|
|
this.AddButton.Name = "AddButton";
|
|
this.AddButton.Size = new System.Drawing.Size(75, 23);
|
|
this.AddButton.TabIndex = 3;
|
|
this.AddButton.Text = "&Add";
|
|
this.AddButton.UseVisualStyleBackColor = true;
|
|
//
|
|
// DeleteButton
|
|
//
|
|
this.DeleteButton.Location = new System.Drawing.Point(86, 4);
|
|
this.DeleteButton.Name = "DeleteButton";
|
|
this.DeleteButton.Size = new System.Drawing.Size(75, 23);
|
|
this.DeleteButton.TabIndex = 4;
|
|
this.DeleteButton.Text = "&Delete";
|
|
this.DeleteButton.UseVisualStyleBackColor = true;
|
|
//
|
|
// groupBox1
|
|
//
|
|
this.groupBox1.Controls.Add(this.tableLayoutPanel1);
|
|
this.groupBox1.Location = new System.Drawing.Point(182, 12);
|
|
this.groupBox1.Name = "groupBox1";
|
|
this.groupBox1.Size = new System.Drawing.Size(257, 186);
|
|
this.groupBox1.TabIndex = 6;
|
|
this.groupBox1.TabStop = false;
|
|
this.groupBox1.Text = "Server";
|
|
//
|
|
// ServersListBox
|
|
//
|
|
this.ServersListBox.FormattingEnabled = true;
|
|
this.ServersListBox.Items.AddRange(new object[] {
|
|
"123.123.23.23",
|
|
"8.8.8.8"});
|
|
this.ServersListBox.Location = new System.Drawing.Point(12, 12);
|
|
this.ServersListBox.Name = "ServersListBox";
|
|
this.ServersListBox.Size = new System.Drawing.Size(164, 186);
|
|
this.ServersListBox.TabIndex = 2;
|
|
//
|
|
// ConfigForm
|
|
//
|
|
this.AcceptButton = this.OKButton;
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
|
this.AutoSize = true;
|
|
this.ClientSize = new System.Drawing.Size(445, 286);
|
|
this.Controls.Add(this.ServersListBox);
|
|
this.Controls.Add(this.groupBox1);
|
|
this.Controls.Add(this.panel1);
|
|
this.Controls.Add(this.panel3);
|
|
this.Controls.Add(this.panel2);
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
|
this.MaximizeBox = false;
|
|
this.Name = "ConfigForm";
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|
this.Text = "Shadowsocks";
|
|
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.ConfigForm_FormClosed);
|
|
this.Load += new System.EventHandler(this.CinfigForm_Load);
|
|
this.tableLayoutPanel1.ResumeLayout(false);
|
|
this.tableLayoutPanel1.PerformLayout();
|
|
this.panel1.ResumeLayout(false);
|
|
this.panel3.ResumeLayout(false);
|
|
this.groupBox1.ResumeLayout(false);
|
|
this.groupBox1.PerformLayout();
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
|
|
private System.Windows.Forms.Label label1;
|
|
private System.Windows.Forms.Label label2;
|
|
private System.Windows.Forms.Label label3;
|
|
private System.Windows.Forms.Label label4;
|
|
private System.Windows.Forms.TextBox IPTextBox;
|
|
private System.Windows.Forms.TextBox ServerPortTextBox;
|
|
private System.Windows.Forms.TextBox PasswordTextBox;
|
|
private System.Windows.Forms.TextBox ProxyPortTextBox;
|
|
private System.Windows.Forms.NotifyIcon notifyIcon1;
|
|
private System.Windows.Forms.Label label5;
|
|
private System.Windows.Forms.ComboBox EncryptionSelect;
|
|
private System.Windows.Forms.Panel panel2;
|
|
private System.Windows.Forms.Button OKButton;
|
|
private System.Windows.Forms.Button MyCancelButton;
|
|
private System.Windows.Forms.Panel panel1;
|
|
private System.Windows.Forms.ContextMenu contextMenu1;
|
|
private System.Windows.Forms.MenuItem enableItem;
|
|
private System.Windows.Forms.MenuItem aboutItem;
|
|
private System.Windows.Forms.MenuItem menuItem3;
|
|
private System.Windows.Forms.MenuItem quitItem;
|
|
private System.Windows.Forms.MenuItem configItem;
|
|
private System.Windows.Forms.MenuItem editPACFileItem;
|
|
private System.Windows.Forms.Panel panel3;
|
|
private System.Windows.Forms.Button DeleteButton;
|
|
private System.Windows.Forms.Button AddButton;
|
|
private System.Windows.Forms.GroupBox groupBox1;
|
|
private System.Windows.Forms.ListBox ServersListBox;
|
|
}
|
|
}
|
|
|