void MainWindow_Closed(object sender, EventArgs e) { searchHistoryWindow.ForceClose(); searchHistoryWindow = null; folderHistoryWindow.ForceClose(); folderHistoryWindow = null; SnarlConnector.RevokeConfig((IntPtr) snarlHandle); }
/// <summary> /// Creates instances of the search history windows /// </summary> private void createHistoryWindows() { searchHistoryWindow = new HistoryPopup(Application.Current.MainWindow.GetType().Assembly.FullName + "." + "searchHistoryWindow"); folderHistoryWindow = new HistoryPopup(Application.Current.MainWindow.GetType().Assembly.FullName + "." + "folderHistoryWindow"); }