private void Dispose(bool disposing) { if (IconMain != null) { IconMain.Dispose(); } if (IconMoney != null) { IconMoney.Dispose(); } if (LabelMain != null) { LabelMain.Dispose(); } if (LabelMoney != null) { LabelMoney.Dispose(); } }
private void quitApp() { t.Abort(); // kill our thread IconMain.Dispose(); // kill our tray icon Environment.Exit(0); // graceful termination with 0=>success }