From 53401a4b9bf46a28795e30d194dec53486fc7112 Mon Sep 17 00:00:00 2001 From: clowwindy Date: Thu, 6 Nov 2014 02:04:36 +0800 Subject: [PATCH] rename ConfigForm --- .gitignore | 6 ++++++ .../{Form1.Designer.cs => ConfigForm.Designer.cs} | 4 ++-- shadowsocks-csharp/{Form1.cs => ConfigForm.cs} | 4 ++-- shadowsocks-csharp/{Form1.resx => ConfigForm.resx} | 0 shadowsocks-csharp/Program.cs | 2 +- shadowsocks-csharp/shadowsocks-csharp.csproj | 10 +++++----- 6 files changed, 16 insertions(+), 10 deletions(-) create mode 100644 .gitignore rename shadowsocks-csharp/{Form1.Designer.cs => ConfigForm.Designer.cs} (97%) rename shadowsocks-csharp/{Form1.cs => ConfigForm.cs} (94%) rename shadowsocks-csharp/{Form1.resx => ConfigForm.resx} (100%) diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..dba5eabd --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +Backup/ +shadowsocks-csharp/bin/ +shadowsocks-csharp/obj/ +shadowsocks-csharp/shadowsocks-csharp.csproj.user +*.suo + diff --git a/shadowsocks-csharp/Form1.Designer.cs b/shadowsocks-csharp/ConfigForm.Designer.cs similarity index 97% rename from shadowsocks-csharp/Form1.Designer.cs rename to shadowsocks-csharp/ConfigForm.Designer.cs index efda4013..d1ca59e7 100755 --- a/shadowsocks-csharp/Form1.Designer.cs +++ b/shadowsocks-csharp/ConfigForm.Designer.cs @@ -1,6 +1,6 @@ namespace shadowsocks_csharp { - partial class Form1 + partial class ConfigForm { /// /// 必需的设计器变量。 @@ -29,7 +29,7 @@ private void InitializeComponent() { this.components = new System.ComponentModel.Container(); - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); + 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(); diff --git a/shadowsocks-csharp/Form1.cs b/shadowsocks-csharp/ConfigForm.cs similarity index 94% rename from shadowsocks-csharp/Form1.cs rename to shadowsocks-csharp/ConfigForm.cs index f8a1f274..5ef69c3b 100755 --- a/shadowsocks-csharp/Form1.cs +++ b/shadowsocks-csharp/ConfigForm.cs @@ -8,14 +8,14 @@ using System.Diagnostics; namespace shadowsocks_csharp { - public partial class Form1 : Form + public partial class ConfigForm : Form { Local local; PACServer pacServer; Config config; PolipoRunner polipoRunner; - public Form1() + public ConfigForm() { config = Config.Load(); InitializeComponent(); diff --git a/shadowsocks-csharp/Form1.resx b/shadowsocks-csharp/ConfigForm.resx similarity index 100% rename from shadowsocks-csharp/Form1.resx rename to shadowsocks-csharp/ConfigForm.resx diff --git a/shadowsocks-csharp/Program.cs b/shadowsocks-csharp/Program.cs index 7e27dd4a..41100677 100755 --- a/shadowsocks-csharp/Program.cs +++ b/shadowsocks-csharp/Program.cs @@ -38,7 +38,7 @@ namespace shadowsocks_csharp } Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); - Application.Run(new Form1()); + Application.Run(new ConfigForm()); } diff --git a/shadowsocks-csharp/shadowsocks-csharp.csproj b/shadowsocks-csharp/shadowsocks-csharp.csproj index c4f4f031..29e914df 100755 --- a/shadowsocks-csharp/shadowsocks-csharp.csproj +++ b/shadowsocks-csharp/shadowsocks-csharp.csproj @@ -89,19 +89,19 @@ - + Form - - Form1.cs + + ConfigForm.cs - - Form1.cs + + ConfigForm.cs Designer