Events arguments used when a text is added to a Logger
Inheritance: System.EventArgs
示例#1
0
 /// <summary>
 /// Appends a header to the log file to denote a new section
 /// </summary>
 /// <param name="message">The text within the header</param>
 public void AppendHeader(string message)
 {
     this._buffer.AppendLine(_header);
     this._buffer.AppendLine(message);
     this._buffer.AppendLine(_header);
     if (this.TextChanged != null)
     {
         var args = new LogTextEventArgs(_header);
         this.TextChanged(this, args);
         this.TextChanged(this, new LogTextEventArgs(message + "\n"));
         this.TextChanged(this, args);
     }
 }