public static void Terminate() { System.IO.Directory.SetCurrentDirectory(GetEntryDirectory()); Manager.NativeManager.SaveDock("config.Dock.config"); SaveWindowConfig("config.Dock.xml"); foreach (var p in panels) { if (p != null) { p.DispatchDisposed(); } } if (effectViewer != null) { effectViewer.DispatchDisposed(); } Shortcuts.SeveShortcuts(); RecentFiles.SaveRecentConfig(); Viewer.HideViewer(); NativeManager.SetCallback(null); NativeManager.Terminate(); Images.Unload(); }
public static void Terminate() { var entryDirectory = GetEntryDirectory(); System.IO.Directory.SetCurrentDirectory(entryDirectory); Manager.NativeManager.SaveDock(entryDirectory + "/config.Dock.config"); SaveWindowConfig(entryDirectory + "/config.Dock.xml"); foreach (var p in panels) { if (p != null) { p.DispatchDisposed(); } } if (effectViewer != null) { effectViewer.DispatchDisposed(); } Network.Save(); Shortcuts.SeveShortcuts(); RecentFiles.SaveRecentConfig(); Viewer.HideViewer(); NativeManager.SetCallback(null); NativeManager.Terminate(); Images.Unload(); swig.MainWindow.Terminate(); MainWindow.Dispose(); MainWindow = null; ThumbnailManager.Terminate(); swig.IO.Terminate(); IO.Dispose(); IO = null; }