Exemplo n.º 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;
         }
     }
 }
Exemplo n.º 2
0
        //发码器低电量信息
        private void tsmiRealtimeAlarmElectricity_Click(object sender, EventArgs e)
        {
            if (Searcher.FindFormByName("FrmRealtimeAlarmElectricity"))
            {
                return;
            }

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

            FrmRealtimeAlarmElectricity frtae = new FrmRealtimeAlarmElectricity();
            frtae.Show(dockPanel1, DockState.Document);
        }
Exemplo n.º 3
0
        //发码器低电量信息
        private void tsmiRealtimeAlarmElectricity_Click(object sender, EventArgs e)
        {
            ILogger.Write(EnumLogType.OperateLog, strLogPath + DateTime.Now.ToString("yyyy-MM-dd") + ".xml", LoginBLL.user, "打开实时发码器低电量信息菜单");

            FrmRealtimeAlarmElectricity frtae = new FrmRealtimeAlarmElectricity();
            frtae.Show();
        }