public void Trace(string text) { string message = string.Format(MESSAGE_FORMAT, DateTime.Now.ToString(TIME_FORMAT), text) + Environment.NewLine; if (mChannelForm.IsDisposed) { mChannelForm = new ChannelForm(this, Title, mContent); } if (mChannelForm.Visible == false) { mChannelForm.Show(); } mContent += message; mChannelForm.Write(message); }
public Channel(string title) { Title = title; mChannelForm = new ChannelForm(this, title); mContent = string.Empty; }