From 1912d2055fdf13df021e659400d1cde95a56ceae Mon Sep 17 00:00:00 2001 From: henning Date: Fri, 20 Mar 2020 15:21:35 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=8F=90=E9=86=92=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E6=97=A5=E5=BF=97=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Netch/Resources/zh-CN | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Netch/Resources/zh-CN b/Netch/Resources/zh-CN index f9a1749b..f7d1e6e1 100644 --- a/Netch/Resources/zh-CN +++ b/Netch/Resources/zh-CN @@ -12,7 +12,7 @@ "Stop": "停止", "Waiting for command": "等待命令中", "Starting": "正在启动中", - "Start failed": "启动失败", + "Start failed": "启动失败,请打开软件目录logging文件夹查看日志", "Started": "已启动", "Stopping": "正在停止中", "Stopped": "已停止", From ba50a239148b93b8ec031c1a23c7a467040ecdc9 Mon Sep 17 00:00:00 2001 From: henning Date: Fri, 20 Mar 2020 16:06:05 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=95=B0=E4=B8=BA0?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E9=9A=90=E8=97=8F=E9=85=8D=E7=BD=AE=E7=95=8C?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Netch/Forms/MainForm.Designer.cs | 2 ++ Netch/Forms/MainForm.cs | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/Netch/Forms/MainForm.Designer.cs b/Netch/Forms/MainForm.Designer.cs index e829e695..fcf1509f 100644 --- a/Netch/Forms/MainForm.Designer.cs +++ b/Netch/Forms/MainForm.Designer.cs @@ -467,6 +467,7 @@ namespace Netch.Forms this.ControlButton.Text = "Start"; this.ControlButton.UseVisualStyleBackColor = true; this.ControlButton.Click += new System.EventHandler(this.ControlButton_Click); + this.ControlButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); // // NotifyIcon // @@ -509,6 +510,7 @@ namespace Netch.Forms this.SettingsButton.Text = "Settings"; this.SettingsButton.UseVisualStyleBackColor = true; this.SettingsButton.Click += new System.EventHandler(this.SettingsButton_Click); + this.SettingsButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); // // ProfileGroupBox // diff --git a/Netch/Forms/MainForm.cs b/Netch/Forms/MainForm.cs index 07cbe84a..85d186ca 100644 --- a/Netch/Forms/MainForm.cs +++ b/Netch/Forms/MainForm.cs @@ -1099,6 +1099,14 @@ namespace Netch.Forms public void InitProfile() { var num_profile = Global.Settings.ProfileCount; + if (num_profile == 0) + { + ProfileGroupBox.Size = new Size(0,0); + ConfigurationGroupBox.Size -= new Size(0, 30); + this.Size -= new Size(0, 70 + 30); + return; + } + ProfileTable.ColumnCount = num_profile; while (Global.Settings.profiles.Count < num_profile)