示例#1
0
 private static void Beenden()
 {
     _trayIcon?.Dispose();
     _updater?.Dispose();
     _identplusclient?.Dispose();
     _demoNetMqServer?.Dispose();
     if (Application.MessageLoop)
     {
         Application.Exit();                          // Schließen einer WinForms app
     }
     else
     {
         Environment.Exit(0);  // Schließen einer Console app
     }
 }
示例#2
0
 public void TearDown()
 {
     _client.Dispose();
 }