Example #1
0
        public void WriteMessage(
            string message,
            PowerShellLineType type = PowerShellLineType.Output,
            bool newLine            = true)
        {
            // Don't show debug events when not running in debug.
            if (type == PowerShellLineType.Debug && !Log.IsEnabled(LogEventLevel.Debug))
            {
                return;
            }

            Execute.BeginOnUIThread(() => Output.Add(new PowerShellOutputLine(message, type, newLine)));
        }
 public void WriteMessage(string message, PowerShellLineType type = PowerShellLineType.Output, bool newLine = true)
 {
     _output.Add(new PowerShellOutputLine(message, type, newLine));
 }
Example #3
0
 public PowerShellOutputLine(string text, PowerShellLineType lineType, bool newLine = true)
 {
     this.Text     = text;
     this.LineType = lineType;
     this.NewLine  = newLine;
 }
 public PowerShellOutputLine(string text, PowerShellLineType lineType, bool newLine = true)
 {
     this.Text = text;
     this.LineType = lineType;
     this.NewLine = newLine;
 }
 public void WriteMessage(string message, PowerShellLineType type = PowerShellLineType.Output, bool newLine = true)
 {
     this._output.Add(new PowerShellOutputLine(message, type, newLine));
 }
Example #6
0
 public PowerShellOutputLine(string text, PowerShellLineType lineType, bool newLine = true)
 {
     Text     = text;
     LineType = lineType;
     NewLine  = newLine;
 }