コード例 #1
0
 public OtherClass(TextToBox textToBox)
 {
     if (textToBox == null)
     {
         throw new ArgumentNullException("textToBox");
     }
     this.textToBox = textToBox;
 }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: lehahel/SUPER_MESSENGER
        public void AppendText(string text)
        {
            if (InvokeRequired)
            {
                var str = new TextToBox(AppendText);
                Invoke(str, text);
            }
            else
            {
                if (text.StartsWith("*"))
                {
                    rtbLog.SelectionColor = Color.Blue;
                }

                rtbLog.AppendText(text + "\r\n");
                rtbLog.ScrollToCaret();
            }
        }
コード例 #3
0
 public OtherClass(TextToBox ttb)
 {
     textToBox = ttb;
 }
コード例 #4
0
 public OtherClass(TextToBox ttb)      // ***Problem***
 {
     textToBox = ttb;
 }