private void OnLogWrite(object o, MessageEventArgs e) { CommandEvent.CommandMessageType cmt = (CommandEvent.CommandMessageType)(int) e.Type; base.RaiseUpdateMessage(this, e.Message, cmt); }
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); }