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