private static void Close() { if (!_isClosed) { _isClosed = true; HttpServer.Stop(); _sMutexApp?.Dispose(); NotifyIcon?.Dispose(); } }
protected override void OnExit(ExitEventArgs e) { notifyIcon?.Dispose(); NTMinerRoot.Current.Exit(); base.OnExit(e); }