Пример #1
0
        public void MessageReceived(object sender, MessageEventArgs e)
        {
            if (_processMsgClosed) return;

            if (e.Message == "refresh")
                RefreshMail();

            else if (e.Message == "settings")
                Invoke(new Action(ShowSettingsForm));

            else if (e.Message == "logout")
                Invoke(new Action(ChangeUser));
        }
Пример #2
0
 private void OnMessageReceived(MessageEventArgs e)
 {
     MessageReceivedEventHandler handler = MessageReceived;
     if (handler != null) handler(this, e);
 }