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) 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": "已停止",