Example #1
0
 public static bool CheckDemo表示()
 {
     try
     {
         var tm = new GeneralTimer(6000);
         tm.Start();
         while (true)
         {
             if (tm.FlagTimeout || Flags.ClickStopButton)
             {
                 return(false);
             }
             if (State.VmComm.RX.Contains("Program Number PFA3097\r\n\r\n>> "))
             {
                 tm.stop();
                 Sleep(300);
                 ClearCommlog();
                 return(true);
             }
         }
     }
     catch
     {
         ClearCommlog();
         return(false);
     }
 }