private void Main_FormClosing(object sender, FormClosingEventArgs e) { try { TapiApp.Shutdown(); } catch (Exception) { } }
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); } }