Beispiel #1
0
 void ll_Click(object sender, EventArgs e)
 {
     LinkLabel ll = (LinkLabel)sender;
     if (ll.LinkColor == Color.Red)
     {
         switch (ll.Text)
         {
             case "超时报警":
                 try
                 {
                     froti1.Show();
                 }
                 catch
                 {
                     froti1 = new FrmRealtimeOverTimeInfo(true);
                     froti1.Show();
                 }
                 froti1.Activate();
                 break;
             case "区域报警":
                 try
                 {
                     frtit1.Show();
                 }
                 catch
                 {
                     frtit1 = new RealTimeSpecialWorkTypeTerrialAlarm();
                     frtit1.Show();
                 }
                 frtit1.Activate();
                 break;
             case "分站故障报警":
                 try
                 {
                     frsb1.Show();
                 }
                 catch
                 {
                     frsb1 = new FrmRealtimeStationBreak(true);
                     frsb1.Show();
                 }
                 frsb1.Activate();
                 break;
             case "超员报警":
                 try
                 {
                     frtoe1.Show();
                 }
                 catch
                 {
                     frtoe1 = new FrmRealTimeOverEmp();
                     frtoe1.Show();
                 }
                 frtoe1.Activate();
                 break;
             case "低电量报警":
                 try
                 {
                     frae1.Show();
                 }
                 catch
                 {
                     frae1 = new FrmRealtimeAlarmElectricity();
                     frae1.Show();
                 }
                 frae1.Activate();
                 break;
             case "接收器故障报警":
                 try
                 {
                     frtshb1.Show();
                 }
                 catch
                 {
                     frtshb1 = new FrmRealTimeStaHeadBreak(true);
                     frtshb1.Show();
                 }
                 frtshb1.Activate();
                 break;
             case "工作异常报警":
                 try
                 {
                     frtap.Show();
                 }
                 catch
                 {
                     frtap = new FrmRealTimeAlarmPath();
                     frtap.Show();
                 }
                 break;
             default:
                 break;
         }
     }
 }
Beispiel #2
0
        //实时接收器信息
        private void tsmiRealTimeStaHeadBreak_Click(object sender, EventArgs e)
        {
            if (Searcher.FindFormByName("FrmRealTimeStaHeadBreak"))
            {
                return;
            }

            ILogger.Write(EnumLogType.OperateLog, strLogPath + DateTime.Now.ToString("yyyy-MM-dd") + ".xml", LoginBLL.user, "打开实时接收器信息菜单");

            FrmRealTimeStaHeadBreak frtshb = new FrmRealTimeStaHeadBreak(false);
            frtshb.Show(dockPanel1, DockState.Document);
        }
Beispiel #3
0
        //实时接收器信息
        private void tsmiRealTimeStaHeadBreak_Click(object sender, EventArgs e)
        {
            ILogger.Write(EnumLogType.OperateLog, strLogPath + DateTime.Now.ToString("yyyy-MM-dd") + ".xml", LoginBLL.user, "打开实时读卡分站信息菜单");

            FrmRealTimeStaHeadBreak frtshb = new FrmRealTimeStaHeadBreak(false);
            frtshb.Show();
        }