예제 #1
0
        public ScriptDisplayForm(string script, string server, string name, SyntaxHightlightType highlightingType, string remoteEndpoint)
            : this()
        {
            this.remoteEndPoint = remoteEndpoint;
            this.Text           = this.Text += " :: " + server + " .. " + name;

            this.richTextBox1.CaseSensitive      = false;
            this.richTextBox1.FilterAutoComplete = true;
            this.richTextBox1.Font          = new System.Drawing.Font("Lucida Console", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
            this.richTextBox1.HighlightType = highlightingType;

            this.richTextBox1.MaxUndoRedoSteps = 50;


            if (highlightingType == SyntaxHightlightType.RemoteServiceLog)
            {
                this.richTextBox1.LinkClicked += new LinkClickedEventHandler(richTextBox1_LinkClicked);
                this.richTextBox1.Text         = script;
            }
            else
            {
                this.richTextBox1.Text = script;
            }
            this.richTextBox1.RefreshHighlighting();
        }
예제 #2
0
 /// <summary>
 /// Constructor that allows for setting the desired highlighting type
 /// </summary>
 /// <param name="script"></param>
 /// <param name="server"></param>
 /// <param name="name"></param>
 /// <param name="highlightingType"></param>
 public ScriptDisplayForm(string script, string server, string name, SyntaxHightlightType highlightingType)
     : this(script, server, name, highlightingType, string.Empty)
 {
 }