Пример #1
0
 private void DestroyShellWindow()
 {
     if (ShellWindow != null)
     {
         ShellWindow.WallpaperChanged -= WallpaperChanged;
         ShellWindow.WorkAreaChanged  -= WorkAreaChanged;
         ShellWindow?.Dispose();
         ShellWindow = null;
     }
 }
Пример #2
0
        protected void Dispose(bool disposing)
        {
            if (!_disposed)
            {
                _intelligence.Disposing();

                _inputQueue.Dispose();
                _outputQueue.Dispose();

                _shell.Dispose();
                _demeanor.Disposing();

                _baloon.Close();

                _disposed = true;
            }
        }