Ejemplo n.º 1
0
        void Messenger_Notified(object sender, Messenger.NotifyEventArgs e)
        {
            if (e.Notification != null)
            {
                if (e.Notification.MessageType == MessageType.Error)
                {
                    NotificationImageNormal = Properties.Resources.NotifError;
                    NotificationImageFocus = Properties.Resources.NotifError2;
                }
                else if (e.Notification.MessageType == MessageType.Info)
                {
                    NotificationImageNormal = Properties.Resources.NotifInfo;
                    NotificationImageFocus = Properties.Resources.NotifInfo2;
                }
                else if (e.Notification.MessageType == MessageType.Question)
                {
                    NotificationImageNormal = Properties.Resources.NotifQuestion;
                    NotificationImageFocus = Properties.Resources.NotifQuestion2;
                }
                else if (e.Notification.MessageType == MessageType.Success)
                {
                    NotificationImageNormal = Properties.Resources.NotifSuccess;
                    NotificationImageFocus = Properties.Resources.NotifSuccess2;
                }
                else if (e.Notification.MessageType == MessageType.Warning)
                {
                    NotificationImageNormal = Properties.Resources.NotifWarning;
                    NotificationImageFocus = Properties.Resources.NotifWarning2;
                }
                else
                {
                    NotificationImageNormal = Properties.Resources.NotifNormal;
                    NotificationImageFocus = Properties.Resources.NotifNormal2;
                }
            }

            btnNotify.BackgroundImage = NotificationImageNormal;
        }
Ejemplo n.º 2
0
 void Messenger_Prompted(object sender, Messenger.MessengerEventArgs e)
 {
     MessageBox.Show(e.Message, "Quic");
 }
Ejemplo n.º 3
0
 static void Messenger_Prompted(object sender, Messenger.MessengerEventArgs e)
 {
     Console.WriteLine();
     Console.WriteLine("Alert>> " + e.Message);
 }
Ejemplo n.º 4
0
 void Messenger_Notified(object sender, Messenger.NotifyEventArgs e)
 {
     RefreshNotificationList();
 }
Ejemplo n.º 5
0
 static void Messenger_Notified(object sender, Messenger.NotifyEventArgs e)
 {
     if (e.Notification != null)
     {
         Console.WriteLine();
         Console.WriteLine("Type: " + e.Notification.MessageType.ToString());
         Console.WriteLine("File: " + e.Notification.FilePath);
         Console.WriteLine("Line: " + e.Notification.Line);
         Console.WriteLine("Column: " + e.Notification.Column);
         Console.WriteLine("Message: " + e.Notification.Message);
         //if (e.Notification.MessageType == MessageType.Error)
         //{
         //    Console.WriteLine("Error>> " + e.Notification.Message);
         //}
         //else if (e.Notification.MessageType == MessageType.Info)
         //{
         //    Console.WriteLine("Info>> " + e.Notification.Message);
         //}
         //else if (e.Notification.MessageType == MessageType.Question)
         //{
         //    Console.WriteLine("Question>> " + e.Notification.Message);
         //}
         //else if (e.Notification.MessageType == MessageType.Success)
         //{
         //    Console.WriteLine("Success>> " + e.Notification.Message);
         //}
         //else if (e.Notification.MessageType == MessageType.Warning)
         //{
         //    Console.WriteLine("Warning>> " + e.Notification.Message);
         //}
         //else
         //{
         //    Console.WriteLine(">> " + e.Notification.Message);
         //}
     }
 }