GmailNotifier.MainForm.MessageReceived C# (CSharp) Method

MessageReceived() public method

public MessageReceived ( object sender, GmailNotifier.MessageEventArgs e ) : void
sender object
e GmailNotifier.MessageEventArgs
return void
        public void MessageReceived(object sender, MessageEventArgs e)
        {
            if (_processMsgClosed) return;

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

            else if (e.Message == "inbox")
                Process.Start(_baseUrl);

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

            else if (e.Message == "logout")
                Invoke(new Action(ChangeUser));
        }