Пример #1
0
 private void submitCharge()
 {
     while (true)
     {
         try
         {
             this.tbxLastRunTime.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
             StateHandle handle    = new StateHandle();
             OrderInfo   phoneInfo = handle.submitOrderService(this);
             if (phoneInfo == null)
             {
                 Thread.Sleep(2000);
             }
             else
             {
                 Thread.Sleep(2000);
             }
         }
         catch (Exception ex)
         {
             View.write(Share.ExceptionToStringForView(ex));
             log.Debug(Share.ExceptionToStringForView(ex));
             Thread.Sleep(2000);//异常时休息
         }
     }
 }
Пример #2
0
 private void submitCharge()
 {
     while (true)
     {
         try
         {
             this.tbxLastRunTime.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
             StateHandle handle = new StateHandle();
             OrderInfo phoneInfo = handle.submitOrderService(this);
             if (phoneInfo == null)
             {
                 Thread.Sleep(2000);
             }
             else
             {
                 Thread.Sleep(2000);
             }
         }
         catch (Exception ex)
         {
             View.write(Share.ExceptionToStringForView(ex));
             log.Debug(Share.ExceptionToStringForView(ex));
             Thread.Sleep(2000);//异常时休息
         }
     }
 }