|
@@ -182,7 +182,7 @@ namespace OTSSysMgrApp
|
|
{
|
|
{
|
|
|
|
|
|
tabHardwareSet.Parent = tabControl1;
|
|
tabHardwareSet.Parent = tabControl1;
|
|
- //}
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
catch (Exception)
|
|
catch (Exception)
|
|
{
|
|
{
|
|
@@ -206,7 +206,7 @@ namespace OTSSysMgrApp
|
|
coB_CleannessType.SelectedIndex=0;
|
|
coB_CleannessType.SelectedIndex=0;
|
|
this.coB_CleannessType.SelectedIndexChanged += new System.EventHandler(this.coB_CleannessType_SelectedIndexChanged);
|
|
this.coB_CleannessType.SelectedIndexChanged += new System.EventHandler(this.coB_CleannessType_SelectedIndexChanged);
|
|
ReadSysType();
|
|
ReadSysType();
|
|
- //btn_ok.Enabled = false;
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// <summary>
|
|
/// 将所有参数保存
|
|
/// 将所有参数保存
|
|
@@ -350,7 +350,7 @@ namespace OTSSysMgrApp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- private bool CopyConfigBySysType()
|
|
|
|
|
|
+ private bool ChangeSysType()
|
|
{
|
|
{
|
|
SwitchSystemValidation switchSystemValidation = new SwitchSystemValidation();
|
|
SwitchSystemValidation switchSystemValidation = new SwitchSystemValidation();
|
|
DialogResult dialogResult = switchSystemValidation.ShowDialog();
|
|
DialogResult dialogResult = switchSystemValidation.ShowDialog();
|
|
@@ -621,7 +621,7 @@ namespace OTSSysMgrApp
|
|
private void radioButton_IncA_CheckedChanged(object sender, EventArgs e)
|
|
private void radioButton_IncA_CheckedChanged(object sender, EventArgs e)
|
|
{
|
|
{
|
|
bool r = radioButton_IncA.Checked;
|
|
bool r = radioButton_IncA.Checked;
|
|
- if (!CopyConfigBySysType())
|
|
|
|
|
|
+ if (!ChangeSysType())
|
|
{
|
|
{
|
|
this.radioButton_IncA.CheckedChanged -= new System.EventHandler(this.radioButton_IncA_CheckedChanged);
|
|
this.radioButton_IncA.CheckedChanged -= new System.EventHandler(this.radioButton_IncA_CheckedChanged);
|
|
radioButton_CleannessA.Checked = r;
|
|
radioButton_CleannessA.Checked = r;
|
|
@@ -635,7 +635,7 @@ namespace OTSSysMgrApp
|
|
if(radioButton_CleannessA.Checked)
|
|
if(radioButton_CleannessA.Checked)
|
|
{
|
|
{
|
|
this.radioButton_IncA.CheckedChanged -= new System.EventHandler(this.radioButton_IncA_CheckedChanged);
|
|
this.radioButton_IncA.CheckedChanged -= new System.EventHandler(this.radioButton_IncA_CheckedChanged);
|
|
- CopyConfigBySysType();
|
|
|
|
|
|
+ ChangeSysType();
|
|
this.radioButton_IncA.CheckedChanged += new System.EventHandler(this.radioButton_IncA_CheckedChanged);
|
|
this.radioButton_IncA.CheckedChanged += new System.EventHandler(this.radioButton_IncA_CheckedChanged);
|
|
}
|
|
}
|
|
}
|
|
}
|