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