コード例 #1
0
 public override void Write(char value)
 {
     base.Write(value);
     if (this.output.InvokeRequired)
     {
         AppendCallback c = new AppendCallback(output.AppendText);
         output.Invoke(c, new Object[] { value.ToString() });
     }
     else
     {
         output.AppendText(value.ToString());
     }
 }
コード例 #2
0
        public void Append(string msg)
        {
            if (msg.Length == 0) return;

            if (this.Editor.InvokeRequired)
            {
                AppendCallback d = new AppendCallback(Append);
                this.Invoke(d, new object[] { msg });
            }
            else
            {
                this.Editor.AppendText(msg);
                UpdateCaret();

                InputStart = this.Editor.TextLength;
            }
        }
コード例 #3
0
        public void Append(string msg)
        {
            if (msg.Length == 0)
            {
                return;
            }

            if (this.Editor.InvokeRequired)
            {
                AppendCallback d = new AppendCallback(Append);
                this.Invoke(d, new object[] { msg });
            }
            else
            {
                this.Editor.AppendText(msg);
                UpdateCaret();

                InputStart = this.Editor.TextLength;
            }
        }
コード例 #4
0
ファイル: Form1.cs プロジェクト: Grivaryg/LibClassicBot
 public static void AppendText(RichTextBox box, string text, Color color)
 {
     AppendCallback d = new AppendCallback(AppendTextInternal);
     box.Invoke(d, new object[] { box, text, color } );
 }
コード例 #5
0
        public static void AppendText(RichTextBox box, string text, Color color)
        {
            AppendCallback d = new AppendCallback(AppendTextInternal);

            box.Invoke(d, new object[] { box, text, color });
        }