예제 #1
0
 static void console_dataArrived(object sender, ConsoleDataArrivedEventArgs e)
 {
     App.Current.Dispatcher.BeginInvoke((Action)(() =>
     {
         ExecuteWindow executeWindow = (ExecuteWindow)App.Current.MainWindow;
         executeWindow.AddConsoleText(e.Data);
     }));
 }
 private void WriteToConsole(object param)
 {
     App.Current.Dispatcher.BeginInvoke((Action)(() =>
     {
         ExecuteWindow executeWindow = (ExecuteWindow)App.Current.MainWindow;
         executeWindow.AddConsoleText((string)param);
     }));
 }