private void DestroyShellWindow() { if (ShellWindow != null) { ShellWindow.WallpaperChanged -= WallpaperChanged; ShellWindow.WorkAreaChanged -= WorkAreaChanged; ShellWindow?.Dispose(); ShellWindow = null; } }
protected void Dispose(bool disposing) { if (!_disposed) { _intelligence.Disposing(); _inputQueue.Dispose(); _outputQueue.Dispose(); _shell.Dispose(); _demeanor.Disposing(); _baloon.Close(); _disposed = true; } }