示例#1
0
 public void ErrorsOccurred(params Exception[] exs)
 {
     ErrorsDockContent.AddErrors(exs);
     foreach (Exception ex in exs)
     {
         ConsoleDockContent.Write(ex);
     }
 }
示例#2
0
 private void ToolStripConsoleButton_OnClicked(object sender, EventArgs e)
 {
     if (ConsoleDockContent.IsHidden)
     {
         ConsoleDockContent.Show(MainDockPanel);
     }
     else
     {
         ConsoleDockContent.Activate();
     }
 }
示例#3
0
 private void HandleError(Exception ex)
 {
     try
     {
         if (ErrorsDockContent != null)
         {
             ErrorsDockContent.AddErrors(ex);
         }
         if (ConsoleDockContent != null)
         {
             ConsoleDockContent.Write(ex);
         }
     }
     catch { }
 }
示例#4
0
 public void WriteConsole(string text, params object[] args)
 {
     ConsoleDockContent.Write(text, args);
 }