public void StartTheSmsThread()
 {
     try
     {
         theController.StartTheSmsThread();
     }
     catch (ApplicationException ae)
     {
         throw new FaultException(ae.Message);
     }
 }
Esempio n. 2
0
 private void btnSms_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         TheMachineController.StartConnection();
         TheMachineController.StartTheSmsThread();
         smsTimer.Start();
         btnSms.Content = "已启动";
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }