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

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

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