修正主界面重复加载的错误
This commit is contained in:
@@ -108,8 +108,16 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
frmMainNew.SwitchFrmMenu(EnumFormType.Base, false);
|
||||
}
|
||||
|
||||
private bool isInit = false;
|
||||
|
||||
|
||||
private void frmMainDetail_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
if (isInit) return;
|
||||
isInit = true;
|
||||
|
||||
|
||||
this.SetFormControlText();
|
||||
try
|
||||
{
|
||||
@@ -325,6 +333,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
{
|
||||
|
||||
Console.WriteLine("数据变化");
|
||||
|
||||
cbt_RunStatusTran.BackColor = _device.CleanMacRunStatusNew ? Color.Lime : Color.Gray;
|
||||
cbt_Brush1StatusTran.BackColor = _device.Hairbrush1Selection ? Color.Lime : Color.Gray;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user