Inheritance: IApplicationEvent
Beispiel #1
0
 private void SendMessageButton_Click(object sender, System.EventArgs e)
 {
     var @event = new MessageEvent(this, CreateMessageTextBox.Text);
     ApplicationEventDispatcher.Dispatch(@event);
 }
Beispiel #2
0
        private void HandleMessageEvent(MessageEvent @event)
        {
            if (@event.Sender == this) return;

            this.CallOrInvokeAsRequired(form => form.DisplayMessageText(@event.Text));
        }