示例#1
0
 private void Main_FormClosing(object sender, FormClosingEventArgs e)
 {
     try
     {
         TapiApp.Shutdown();
     }
     catch (Exception)
     {
     }
 }
示例#2
0
 private void Form1_FormClosed(object sender, FormClosedEventArgs e)
 {
     try
     {
         TapiApp.Shutdown();
     }
     catch (TapiException exc)
     {
         MessageBox.Show(exc.Message, "TapiException!", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     catch (Exception exc)
     {
         MessageBox.Show(exc.Message, "Exception!", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }