Esempio n. 1
0
        private void initGrid()
        {
            grid_monitor.Children.Clear();
            #region 构造数据,将来删除
            //if (_freqPlanActivitys.Count > 0)
            //{
            //    foreach (FreqPlanActivity freqPlan in _freqPlanActivitys)
            //    {
            //        if (freqPlan.ApplyEquipments.Count == 0)
            //        {
            //            freqPlan.ApplyEquipments.AddRange(GetActivityEquipmentInfo1(freqPlan));
            //        }
            //    }
            //}
            //if (_roundStationInfos.Count == 0)
            //{
            //    _roundStationInfos.AddRange(GetRoundStationInfo());
            //}
            #endregion

            var acticity = SystemLoginService.CurrentActivity;
            var place    = SystemLoginService.CurrentActivityPlace;
            realTimeMonitor = new CO_IA.UI.Collection.RealTimeMonitor(_detailMonitorPlan, _freqPlanActivitys, _roundStationInfos,
                                                                      realTimeMonitor_AfterMonitor,
                                                                      acticity,
                                                                      place);
            grid_monitor.Children.Add(realTimeMonitor);
        }
Esempio n. 2
0
 public void StopMono()
 {
     if (realTimeMonitor != null)
     {
         realTimeMonitor.StopMono();
         realTimeMonitor = null;
     }
 }