Beispiel #1
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposing)
            {
                return;
            }

            _powerManager?.Dispose();
            BackgroundForm?.Dispose();
        }
Beispiel #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposed)
            {
                if (disposing)
                {
                    //
                    micmonitor?.Dispose();
                    mainwindow?.Dispose();
                    processmanager?.Dispose();
                    trayaccess?.Dispose();
                    netmonitor?.Dispose();
                    diskmanager?.Dispose();
                    powermanager?.Dispose();
                    activeappmonitor?.Dispose();
                    healthmonitor?.Dispose();
                    selfmaintenance?.Dispose();
                }

                disposed = true;
            }
        }
Beispiel #3
0
 private void App_OnExit(object sender, ExitEventArgs e)
 {
     DisposeMutex();
     PowerManager?.Dispose();
     HotKeyManager?.Dispose();
 }