示例#1
0
        public static void Run(string message, string cfgpath)
        {
            BadSettingsErrorForm win = new BadSettingsErrorForm();

            win.tbxError.Text = message;
            win.m_cfgpath     = cfgpath;
            win.ShowDialogEx();
        }
示例#2
0
 public static void ShowErrorWindow(Exception e)
 {
     e = ExtractImportantException(e);
     if (e is BadSettingsError)
     {
         BadSettingsErrorForm.Run((BadSettingsError)e);
     }
     else if (e is ExpectedError)
     {
         StdDialog.ShowError(e.Message);
     }
     else
     {
         ErrorForm.Run(e, Logging.GetFeedbackLastLogEntries());
     }
 }