Ejemplo n.º 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);
    }
Ejemplo n.º 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;
    }
Ejemplo n.º 3
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, PSHostRawUserInterface host, bool terminated)
 {
     this.type       = type;
     this.value      = value;
     this.terminated = terminated;
     width           = host.BufferSize.Width;
     foregroundColor = host.ForegroundColor;
     backgroundColor = host.BackgroundColor;
 }
Ejemplo n.º 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 });
         }
     }
 }
Ejemplo n.º 8
0
 public OutputLine(string output, OutputLineType type)
 {
     Output = output;
     Type   = type;
 }
Ejemplo n.º 9
0
 public OutputLine(string output, OutputLineType type)
 {
     Output = output;
     Type = type;
 }
Ejemplo n.º 10
0
 public OutputLine(string _Text, string _Stack, OutputLineType _Type) : this()
 {
     Text  = _Text;
     Type  = _Type;
     Stack = _Stack;
 }
Ejemplo n.º 11
0
        }                                   // Error, warning, info

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