Пример #1
0
 private void UpdatePollMonitors(DateTime dt)
 {
     foreach (object o in ActivePollMonitors)
     {
         Form frmMon = (Form)o;
         foreach (UserControl control in frmMon.Controls)
         {
             if (control.GetType().IsSubclassOf(Type.GetType("csi.see.client1.BaseAnal")))
             {
                 BaseAnal analyzer = (BaseAnal)control;
                 analyzer.AddData(dt);
             }
             //else if (control.GetType().IsSubclassOf(Type.GetType("ConsoleRecords.PageableConsole")))
             //{}
         }
     }
 }
Пример #2
0
 private void UpdateAnalyzer(DateTime dt, BaseAnal analyzer)
 {
     analyzer.AddData(dt);
 }