예제 #1
0
 public void start()
 {
     while (a.isStop == false)
     {
         Thread.Sleep(10);
         if (a.GetHours() > 0)
         {
             setText_Control(Lab_hour, a.GetHours().ToString("00"));
             setText_Control(label4, ":");
         }
         setText_Control(Lab_minute, a.GetMinutes().ToString("00"));
         setText_Control(Lab_sec, a.GetSeconds().ToString("00"));
         setText_Control(Lab_milisec, a.GetMiliseconds().ToString("00"));
         a.IncreaseMilisec();
         if (a.Record_Count > 0)
         {
             if (a.GetHours2() > 0)
             {
                 setText_Control(Lab_hour2, a.GetHours2().ToString("00"));
                 setText_Control(label1, ":");
             }
             ;
             setText_Control(Lab_minute2, a.GetMinutes2().ToString("00"));
             setText_Control(label2, ":");
             setText_Control(Lab_sec2, a.GetSeconds2().ToString("00"));
             setText_Control(label3, ".");
             setText_Control(Lab_milisec2, a.GetMiliseconds2().ToString("00"));
         }
         a.IncreaseMilisec2();
     }
 }