protected virtual void OnMessageReceived (MessageEventArgs e) { if (MessageReceived != null) MessageReceived (this, e); }
void HandleMessageReceived(object sender, MessageEventArgs e) { AddMessage(e.Message); }