Browse Source

add icon

tags/3.2
clowwindy 12 years ago
parent
commit
d51cb983d6
5 changed files with 1167 additions and 11 deletions
  1. +56
    -11
      shadowsocks-csharp/Form1.Designer.cs
  2. +10
    -0
      shadowsocks-csharp/Form1.cs
  3. +1097
    -0
      shadowsocks-csharp/Form1.resx
  4. BIN
      shadowsocks-csharp/icon144.ico
  5. +4
    -0
      shadowsocks-csharp/shadowsocks-csharp.csproj

+ 56
- 11
shadowsocks-csharp/Form1.Designer.cs View File

@@ -28,6 +28,8 @@
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
@@ -38,12 +40,17 @@
this.textBox3 = new System.Windows.Forms.TextBox();
this.textBox4 = new System.Windows.Forms.TextBox();
this.panel1 = new System.Windows.Forms.Panel();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.Config = new System.Windows.Forms.ToolStripMenuItem();
this.Quit = new System.Windows.Forms.ToolStripMenuItem();
this.tableLayoutPanel1.SuspendLayout();
this.panel1.SuspendLayout();
this.tableLayoutPanel2.SuspendLayout();
this.contextMenuStrip1.SuspendLayout();
this.SuspendLayout();
//
// tableLayoutPanel1
@@ -162,16 +169,6 @@
this.panel1.Size = new System.Drawing.Size(164, 30);
this.panel1.TabIndex = 1;
//
// button1
//
this.button1.DialogResult = System.Windows.Forms.DialogResult.OK;
this.button1.Location = new System.Drawing.Point(4, 4);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 0;
this.button1.Text = "OK";
this.button1.UseVisualStyleBackColor = true;
//
// button2
//
this.button2.DialogResult = System.Windows.Forms.DialogResult.Cancel;
@@ -182,6 +179,16 @@
this.button2.Text = "Cancel";
this.button2.UseVisualStyleBackColor = true;
//
// button1
//
this.button1.DialogResult = System.Windows.Forms.DialogResult.OK;
this.button1.Location = new System.Drawing.Point(4, 4);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 0;
this.button1.Text = "OK";
this.button1.UseVisualStyleBackColor = true;
//
// tableLayoutPanel2
//
this.tableLayoutPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
@@ -200,12 +207,45 @@
this.tableLayoutPanel2.Size = new System.Drawing.Size(266, 36);
this.tableLayoutPanel2.TabIndex = 3;
//
// notifyIcon1
//
this.notifyIcon1.ContextMenuStrip = this.contextMenuStrip1;
this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
this.notifyIcon1.Text = "notifyIcon1";
this.notifyIcon1.Visible = true;
//
// contextMenuStrip1
//
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.Config,
this.Quit});
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
this.contextMenuStrip1.ShowImageMargin = false;
this.contextMenuStrip1.Size = new System.Drawing.Size(86, 48);
//
// Config
//
this.Config.Name = "Config";
this.Config.Size = new System.Drawing.Size(127, 22);
this.Config.Text = "Config";
this.Config.Click += new System.EventHandler(this.Config_Click);
//
// Quit
//
this.Quit.Name = "Quit";
this.Quit.Size = new System.Drawing.Size(127, 22);
this.Quit.Text = "Quit";
this.Quit.Click += new System.EventHandler(this.Quit_Click);
//
// Form1
//
this.AcceptButton = this.button1;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoSize = true;
this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.CancelButton = this.button2;
this.ClientSize = new System.Drawing.Size(291, 206);
this.Controls.Add(this.tableLayoutPanel2);
this.Controls.Add(this.tableLayoutPanel1);
@@ -216,6 +256,7 @@
this.panel1.ResumeLayout(false);
this.tableLayoutPanel2.ResumeLayout(false);
this.tableLayoutPanel2.PerformLayout();
this.contextMenuStrip1.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
@@ -236,6 +277,10 @@
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private System.Windows.Forms.NotifyIcon notifyIcon1;
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
private System.Windows.Forms.ToolStripMenuItem Config;
private System.Windows.Forms.ToolStripMenuItem Quit;
}
}

+ 10
- 0
shadowsocks-csharp/Form1.cs View File

@@ -14,5 +14,15 @@ namespace shadowsocks_csharp
{
InitializeComponent();
}
private void Config_Click(object sender, EventArgs e)
{
}
private void Quit_Click(object sender, EventArgs e)
{
}
}
}

+ 1097
- 0
shadowsocks-csharp/Form1.resx
File diff suppressed because it is too large
View File


BIN
shadowsocks-csharp/icon144.ico View File

Before After

+ 4
- 0
shadowsocks-csharp/shadowsocks-csharp.csproj View File

@@ -14,6 +14,7 @@
<FileAlignment>512</FileAlignment>
<StartupObject>
</StartupObject>
<ApplicationIcon>icon144.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -74,6 +75,9 @@
</Compile>
<Compile Include="Test.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="icon144.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.


Loading…
Cancel
Save