mirror of
https://github.com/netchx/netch.git
synced 2026-03-18 18:13:21 +08:00
Merge pull request #253 from henning724/master
提醒用户查看日志目录+配置数为0时,隐藏配置界面
This commit is contained in:
2
Netch/Forms/MainForm.Designer.cs
generated
2
Netch/Forms/MainForm.Designer.cs
generated
@@ -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
|
||||
//
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
"Stop": "停止",
|
||||
"Waiting for command": "等待命令中",
|
||||
"Starting": "正在启动中",
|
||||
"Start failed": "启动失败",
|
||||
"Start failed": "启动失败,请打开软件目录logging文件夹查看日志",
|
||||
"Started": "已启动",
|
||||
"Stopping": "正在停止中",
|
||||
"Stopped": "已停止",
|
||||
|
||||
Reference in New Issue
Block a user