Inheritance: System.Windows.Controls.UserControl, IDisposable
Example #1
0
        TrayNotificationBalloon CreateBalloon(string title, string message,
                                              TrayNotificationButtons tnb = TrayNotificationButtons.tnbNone, ICommand[] buttonCommands = null)
        {
            var balloon = new TrayNotificationBalloon(this);

            balloon.Setup(title, message, tnb, buttonCommands);
            return(balloon);
        }
Example #2
0
 void Process2Choice(TwoChoiceTrayNotification current2ChoiceEvent)
 {
     _lastTrayBalloon = CreateBalloon(current2ChoiceEvent.Title,
                                      current2ChoiceEvent.Message,
                                      TrayNotificationButtons.tnbYesNo,
                                      new[] {
         current2ChoiceEvent.YesCommand,
         current2ChoiceEvent.NoCommand
     });
     TaskbarIcon.ShowCustomBalloon(_lastTrayBalloon, PopupAnimation.Slide, null);
 }
Example #3
0
 void Process3Choice(ThreeChoiceTrayNotification current3ChoiceEvent)
 {
     _lastTrayBalloon = CreateBalloon(current3ChoiceEvent.Title,
                                      current3ChoiceEvent.Message,
                                      TrayNotificationButtons.tnbAcceptDeclineIgnore,
                                      new[] {
         current3ChoiceEvent.AcceptCommand,
         current3ChoiceEvent.DeclineCommand,
         current3ChoiceEvent.IgnoreCommand
     });
     TaskbarIcon.ShowCustomBalloon(_lastTrayBalloon, PopupAnimation.Slide, null);
 }
Example #4
0
 void ProcessBalloon(TrayNotification currentNotifyEvent)
 {
     _lastTrayBalloon = CreateBalloon(currentNotifyEvent.Title,
                                      currentNotifyEvent.Message);
     TaskbarIcon.ShowCustomBalloon(_lastTrayBalloon, PopupAnimation.Slide, null);
 }
 void Process2Choice(TwoChoiceTrayNotification current2ChoiceEvent) {
     _lastTrayBalloon = CreateBalloon(current2ChoiceEvent.Title,
         current2ChoiceEvent.Message,
         TrayNotificationButtons.tnbYesNo,
         new[] {
             current2ChoiceEvent.YesCommand,
             current2ChoiceEvent.NoCommand
         });
     TaskbarIcon.ShowCustomBalloon(_lastTrayBalloon, PopupAnimation.Slide, null);
 }
 void ProcessBalloon(TrayNotification currentNotifyEvent) {
     _lastTrayBalloon = CreateBalloon(currentNotifyEvent.Title,
         currentNotifyEvent.Message);
     TaskbarIcon.ShowCustomBalloon(_lastTrayBalloon, PopupAnimation.Slide, null);
 }
 TrayNotificationBalloon CreateBalloon(string title, string message,
     TrayNotificationButtons tnb = TrayNotificationButtons.tnbNone, ICommand[] buttonCommands = null) {
     var balloon = new TrayNotificationBalloon(this);
     balloon.Setup(title, message, tnb, buttonCommands);
     return balloon;
 }
 void Process3Choice(ThreeChoiceTrayNotification current3ChoiceEvent) {
     _lastTrayBalloon = CreateBalloon(current3ChoiceEvent.Title,
         current3ChoiceEvent.Message,
         TrayNotificationButtons.tnbAcceptDeclineIgnore,
         new[] {
             current3ChoiceEvent.AcceptCommand,
             current3ChoiceEvent.DeclineCommand,
             current3ChoiceEvent.IgnoreCommand
         });
     TaskbarIcon.ShowCustomBalloon(_lastTrayBalloon, PopupAnimation.Slide, null);
 }