GetOutputType() public method

public GetOutputType ( string text ) : OutputType
text string
return OutputType
Ejemplo n.º 1
0
        public void PrintOutput(string text)
        {
            var outputType = outputParser.GetOutputType(text);

            // suppress warnings...
            if (outputType != OutputType.Warning)
            {
                Glue.MainGlueWindow.Self.Invoke(() =>
                {
                    TextBox.AppendText(text + "\n");
                    TextBox.ScrollToEnd();
                });
            }
        }
Ejemplo n.º 2
0
        public void PrintOutput(string text)
        {
            // suppress warnings...
            var split = text.Split('\n');

            foreach (var line in split)
            {
                var outputType = outputParser.GetOutputType(line);
                if (outputType != OutputType.Warning)
                // Now all output is combined into one, so we have to do a split
                {
                    Glue.MainGlueWindow.Self.Invoke(() =>
                    {
                        TextBox.AppendText(line + "\n");
                        TextBox.ScrollToEnd();
                    });
                }
            }
        }