Exemple #1
0
        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);
        }
Exemple #2
0
 public Channel(string title)
 {
     Title        = title;
     mChannelForm = new ChannelForm(this, title);
     mContent     = string.Empty;
 }