Exemple #1
0
    // adds new line to the output
    public void AddLine(string _Text, string _Stack, LogType _Type)
    {
        OutputLineType Converted = OutputLineType.None;

        switch (_Type)
        {
        case LogType.Error:
            Converted = OutputLineType.Error;
            break;

        case LogType.Assert:
            Converted = OutputLineType.Assert;
            break;

        case LogType.Warning:
            Converted = OutputLineType.Warning;
            break;

        case LogType.Log:
            Converted = OutputLineType.Log;
            break;

        case LogType.Exception:
            Converted = OutputLineType.Exception;
            break;
        }

        AddLine(_Text, _Stack, Converted);
    }
Exemple #2
0
    // adds new line to the output
    public void AddLine(string _Text, string _Stack, OutputLineType _Type)
    {
        Lines.Add(new OutputLine(_Text, _Stack, _Type));

        // autoscroll
        ScrollPosition.y = float.MaxValue;
    }
 public OutputLine(OutputLineType outputLineType, string value, ConsoleColor foregroundColor,
                   ConsoleColor backgroundColor, bool terminated)
 {
     LineType        = outputLineType;
     Text            = value;
     ForegroundColor = foregroundColor;
     BackgroundColor = backgroundColor;
     Terminated      = terminated;
 }
 public BufferSplitterCollection(OutputLineType type, string value, PSHostRawUserInterface host, bool terminated)
 {
     this.type       = type;
     this.value      = value;
     this.terminated = terminated;
     width           = host.BufferSize.Width;
     foregroundColor = host.ForegroundColor;
     backgroundColor = host.BackgroundColor;
 }
Exemple #5
0
 public OutputLine(OutputLineType outputLineType, string value, ConsoleColor foregroundColor,
     ConsoleColor backgroundColor, bool terminated)
 {
     LineType = outputLineType;
     Text = value;
     ForegroundColor = foregroundColor;
     BackgroundColor = backgroundColor;
     Terminated = terminated;
 }
 public BufferSplitterCollection(OutputLineType type, string value, int width, ConsoleColor foregroundColor,
                                 ConsoleColor backgroundColor, bool terminated)
 {
     this.type            = type;
     this.value           = value;
     this.width           = width;
     this.terminated      = terminated;
     this.foregroundColor = foregroundColor;
     this.backgroundColor = backgroundColor;
 }
 private void OnOutput(string msg, OutputLineType type)
 {
     if (Output != null && msg != null)
     {
         lock (_outputLock)
         {
             Output(new OutputMessage() { Message = msg, Type = type });
         }
     }
 }
Exemple #8
0
 public OutputLine(string output, OutputLineType type)
 {
     Output = output;
     Type   = type;
 }
 public OutputLine(string output, OutputLineType type)
 {
     Output = output;
     Type = type;
 }
Exemple #10
0
 public OutputLine(string _Text, string _Stack, OutputLineType _Type) : this()
 {
     Text  = _Text;
     Type  = _Type;
     Stack = _Stack;
 }
Exemple #11
0
        }                                   // Error, warning, info

        public OutputLine(OutputLineType type, string msg)
        {
            Message = msg;
            Type    = (int)type;
        }
Exemple #12
0
 public void AddMessage(OutputLineType type, string msg, params object[] args)
 {
     Messages.Add(new OutputLine(type, Localization.Get(msg, null, args)));
 }
 public Output(OutputLineType type, String value)
 {
     LineType = type;
     Text     = value;
 }