Exemplo n.º 1
0
 private static void ErrorHandler(object sender, DataReceivedEventArgs e)
 {
     if (string.IsNullOrEmpty(e.Data))
     {
         return;
     }
     App.Current.Dispatcher.BeginInvoke((Action)(delegate {
         MessageReported?.Invoke(sender, new MessageReportedEventArgs(e.Data, true));
     }));
     LastError = e.Data;
 }
Exemplo n.º 2
0
 private static void OutputHandler(object sender, DataReceivedEventArgs e)
 {
     if (string.IsNullOrEmpty(e.Data))
     {
         return;
     }
     App.Current.Dispatcher.BeginInvoke((Action)(delegate {
         MessageReported?.Invoke(sender, new MessageReportedEventArgs(e.Data, false));
     }));
     if (e.Data.Trim().Length > 0)
     {
         LastOutputLine = e.Data.Trim();
     }
 }
Exemplo n.º 3
0
 private void OnMessageReported(FileBasedProject project, ExecutionMessage executionMessage)
 {
     MessageReported?.Invoke(this, new ProjectMessageEventArgs {
         Project = project, Message = executionMessage.Level + ": " + executionMessage.Message
     });
 }
Exemplo n.º 4
0
 private void OnMessageReported(FileBasedProject project, string message)
 {
     MessageReported?.Invoke(this, new ProjectMessageEventArgs {
         Project = project, Message = message
     });
 }
Exemplo n.º 5
0
        private void BackgroundProgress(object sender, ProgressChangedEventArgs e)
        {
            MessageReportedEventArgs eventArgs = e.UserState as MessageReportedEventArgs;

            MessageReported?.Invoke(this, eventArgs);
        }