// The bulk of the clean-up code is implemented in Dispose(bool) protected virtual void Dispose(bool disposing) { if (disposing) { IsDisposing = true; TrayNotifyIcon?.Dispose(); TrayMenuStrip?.Dispose(); OpenApplicationMenu?.Dispose(); ExitMenu?.Dispose(); ShowLoadedControls?.Dispose(); } }