private void pictureBox29_Click(object sender, EventArgs e) { if (Searcher.FindFormByName("FrmRealtimeStationBreak")) { return; } ILogger.Write(EnumLogType.OperateLog, strLogPath + DateTime.Now.ToString("yyyy-MM-dd") + ".xml", LoginBLL.user, "打开实时分站信息菜单"); FrmRealtimeStationBreak frm = new FrmRealtimeStationBreak(false); frm.Show(((KJ128NInterfaceShow.FrmMain)frmMain).dockPanel1, DockState.Document); }
void ll_Click(object sender, EventArgs e) { LinkLabel ll = (LinkLabel)sender; if (ll.LinkColor == Color.Red) { switch (ll.Text) { case "超时报警": if (!Searcher.FindFormByName("FrmRealtimeOverTimeInfo")) { FrmRealtimeOverTimeInfo froti1 = new FrmRealtimeOverTimeInfo(true); OpenForm(froti1); } break; case "区域报警": if (!Searcher.FindFormByName("RealTimeSpecialWorkTypeTerrialAlarm")) { RealTimeSpecialWorkTypeTerrialAlarm frtit1 = new RealTimeSpecialWorkTypeTerrialAlarm(); OpenForm(frtit1); } break; case "传输分站故障报警": if (!Searcher.FindFormByName("FrmRealtimeStationBreak")) { FrmRealtimeStationBreak frsb1 = new FrmRealtimeStationBreak(true); OpenForm(frsb1); } break; case "超员报警": if (!Searcher.FindFormByName("FrmRealTimeOverEmp")) { FrmRealTimeOverEmp frtoe1 = new FrmRealTimeOverEmp(); OpenForm(frtoe1); } break; case "低电量报警": if (!Searcher.FindFormByName("FrmRealtimeAlarmElectricity")) { FrmRealtimeAlarmElectricity frae1 = new FrmRealtimeAlarmElectricity(); OpenForm(frae1); } break; case "读卡分站故障报警": if (!Searcher.FindFormByName("FrmRealTimeStaHeadBreak")) { FrmRealTimeStaHeadBreak frtshb1 = new FrmRealTimeStaHeadBreak(true); OpenForm(frtshb1); } break; case "工作异常报警": if (!Searcher.FindFormByName("FrmRealTimeAlarmPath")) { FrmRealTimeAlarmPath frtap = new FrmRealTimeAlarmPath(); OpenForm(frtap); } break; default: break; } } }