public OtherClass(TextToBox textToBox) { if (textToBox == null) { throw new ArgumentNullException("textToBox"); } this.textToBox = textToBox; }
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(); } }
public OtherClass(TextToBox ttb) { textToBox = ttb; }
public OtherClass(TextToBox ttb) // ***Problem*** { textToBox = ttb; }