예제 #1
0
 private void OnLogWrite(object o, MessageEventArgs e)
 {
     CommandEvent.CommandMessageType cmt = (CommandEvent.CommandMessageType)(int) e.Type;
     base.RaiseUpdateMessage(this, e.Message, cmt);
 }
예제 #2
0
 public void RaiseUpdateMessage(object sender, string message, CommandEvent.CommandMessageType type)
 {
     CommandEvent.CommandEventArgs cea = new SMTP.Commands.CommandEvent.CommandEventArgs(message);
     cea.Type = type;
     this.UpdateMessage(sender, cea);
 }