Exemple #1
0
 public static void LogFatal(System.Windows.Controls.TextBox inout_oTextBox, string in_sMessage)
 {
     moLogger.Fatal(in_sMessage);
     if (LogToDisplay)
     {
         BootmanLogData oLogData = new BootmanLogData();
         oLogData.LogTextBox = inout_oTextBox;
         oLogData.LogText    = in_sMessage;
         AppendToTextbox(oLogData);
     }
 }
Exemple #2
0
 public static void AppendToTextbox(BootmanLogData oLogData)
 {
     if (oLogData.LogTextBox.Dispatcher.CheckAccess())
     {
         oLogData.LogTextBox.AppendText(oLogData.LogText + "\r\n");
         oLogData.LogTextBox.ScrollToEnd();
     }
     else
     {
         oLogData.LogTextBox.Dispatcher.Invoke(
             System.Windows.Threading.DispatcherPriority.Normal,
             new AppendToTextboxDelegate(AppendToTextbox), oLogData);
     }
 }