private void Window_Closed(object sender, System.EventArgs e) { GlobalSetting.GetInstance().ConfigModel.CollectTabInfo(tab_control_.Items); Config.ConfigFileController.Save(GlobalSetting.GetInstance().ConfigModel); }
public static void ShowMessage(string message) { MainWindow window = GlobalSetting.GetInstance().GetWindow(); MessageBox.Show(window, message, Caption); }
private void Window_Loaded(object sender, RoutedEventArgs e) { GlobalSetting.GetInstance().SetWindow(this); SetTitleToGitVersion(); RestoreTabs(); }
public static MessageBoxResult ShowMessageWithOKCancel(string message) { MainWindow window = GlobalSetting.GetInstance().GetWindow(); return(MessageBox.Show(window, message, Caption, MessageBoxButton.OKCancel, MessageBoxImage.Question)); }