示例#1
0
 void Process2Choice(TwoChoiceTrayNotification current2ChoiceEvent) {
     _lastTrayBalloon = CreateBalloon(current2ChoiceEvent.Title,
         current2ChoiceEvent.Message,
         TrayNotificationButtons.tnbYesNo,
         new[] {
             current2ChoiceEvent.YesCommand,
             current2ChoiceEvent.NoCommand
         });
     TaskbarIcon.ShowCustomBalloon(_lastTrayBalloon, PopupAnimation.Slide, null);
 }
示例#2
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;
 }
示例#3
0
 void ProcessBalloon(TrayNotification currentNotifyEvent) {
     _lastTrayBalloon = CreateBalloon(currentNotifyEvent.Title,
         currentNotifyEvent.Message);
     TaskbarIcon.ShowCustomBalloon(_lastTrayBalloon, PopupAnimation.Slide, null);
 }
示例#4
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);
 }