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

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