private void Btn_ParEnable_Click(object sender, EventArgs e) { Frm_Login FrmLogin = new Frm_Login(); if (FrmLogin.Visible == false) { FrmLogin.Show(); FrmLogin.MainPassword.Focus(); } }
private void Btn_ParEnable_Click(object sender, EventArgs e) { if (PVar.MacHold || (PVar.Stop_Flag && (PVar.Sta_Work[0].Step < 20 && PVar.Sta_Work[1].Step < 20 && PVar.Sta_Work[2].Step < 20 && PVar.Sta_Work[3].Step < 20 && PVar.Sta_Work[4].Step < 20))) { } else { ShowList("设备运行中,请先暂停设备!"); return; } Frm_Login FrmLogin = new Frm_Login(); if (FrmLogin.Visible == false) { FrmLogin.Show(); FrmLogin.MainPassword.Focus(); } }
public Frm_Login() { InitializeComponent(); fLogin = this; }