Пример #1
0
 private void OnSessionOutput(object sender, ROutputEventArgs e)
 {
     if (_output != null && _errors != null)
     {
         if (e.OutputType == OutputType.Error)
         {
             _errors.Append(e.Message);
         }
         else
         {
             _output.Append(e.Message);
         }
     }
 }
Пример #2
0
 private void SessionOnOutput(object sender, ROutputEventArgs args) {
     if (args.OutputType == OutputType.Output) {
         Write(args.Message.ToUnicodeQuotes());
     } else {
         WriteErrorLine(args.Message);
     }
 }