//destroy everything but our tray icon, main window, and our notification bubble private void DestroyMostlyEverything() { if (hbox != null) { hbox.Destroy(); } if (vbox != null) { vbox.Destroy(); } if (newi != null) { newi.Destroy(); } if (menuBar != null) { menuBar.Destroy(); } if (filemenu != null) { filemenu.Destroy(); } if (file != null) { file.Destroy(); } if (sep != null) { sep.Destroy(); } if (exit != null) { exit.Destroy(); } if (uploadButton != null) { uploadButton.Destroy(); } if (toCropBox != null) { toCropBox.Destroy(); } if (agr != null) { agr.Dispose(); } }
//literally, destroy all our gui stuff private void DestroyEverything() { if (hbox != null) { hbox.Destroy(); } if (vbox != null) { vbox.Destroy(); } if (newi != null) { newi.Destroy(); } if (menuBar != null) { menuBar.Destroy(); } if (filemenu != null) { filemenu.Destroy(); } if (file != null) { file.Destroy(); } if (sep != null) { sep.Destroy(); } if (exit != null) { exit.Destroy(); } if (uploadButton != null) { uploadButton.Destroy(); } if (toCropBox != null) { toCropBox.Destroy(); } if (appimg != null) { appimg.Destroy(); } if (menuItemQuit != null) { menuItemQuit.Destroy(); } if (popupMenu != null) { popupMenu.Destroy(); } if (notificationMessage != null) { notificationMessage.Destroy(); } if (notificationEventBox != null) { notificationEventBox.Destroy(); } if (mainWindowTracker != null) { mainWindowTracker.Destroy(); } if (trayIcon != null) { trayIcon.Dispose(); } if (agr != null) { agr.Dispose(); } }