Beispiel #1
0
 private void Window_Closed(object sender, System.EventArgs e)
 {
     GlobalSetting.GetInstance().ConfigModel.CollectTabInfo(tab_control_.Items);
     Config.ConfigFileController.Save(GlobalSetting.GetInstance().ConfigModel);
 }
Beispiel #2
0
        public static void ShowMessage(string message)
        {
            MainWindow window = GlobalSetting.GetInstance().GetWindow();

            MessageBox.Show(window, message, Caption);
        }
Beispiel #3
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     GlobalSetting.GetInstance().SetWindow(this);
     SetTitleToGitVersion();
     RestoreTabs();
 }
Beispiel #4
0
        public static MessageBoxResult ShowMessageWithOKCancel(string message)
        {
            MainWindow window = GlobalSetting.GetInstance().GetWindow();

            return(MessageBox.Show(window, message, Caption, MessageBoxButton.OKCancel, MessageBoxImage.Question));
        }