コード例 #1
0
 private void Button_Click_1(object sender, RoutedEventArgs e)
 {
     try
     {
         m_SMSEngine.StopSMSEnging();
         v_MessageBox.Text = "Stopped";
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
コード例 #2
0
 private void Button_Click_1(object sender, RoutedEventArgs e)
 {
     try
     {
         m_IsRestartEnabled = false;
         try
         {
             m_SMSEngine.StopSMSEnging();
             m_SMSEngine = null;
         }
         catch (Exception ex)
         {
         }
         v_MessageBox.Text = "Stopped";
         this.Close();
     }
     catch (Exception ex)
     {
         m_SMSEngine = null;
         System.Windows.MessageBox.Show(ex.Message);
     }
 }