示例#1
0
        void starRating_RatingValueChanged(object sender, iRate.Controls.RatingChangedEventArgs e)

        {
            Growl.CoreLibrary.NotificationCallbackEventArgs args = new Growl.CoreLibrary.NotificationCallbackEventArgs(this.NotificationID, Growl.CoreLibrary.CallbackResult.CLICK);

            args.CustomInfo.Add("Rating", e.NewRating.ToString());

            this.OnNotificationClicked(args);
        }
示例#2
0
        void display_NotificationCallback(Growl.CoreLibrary.NotificationCallbackEventArgs args)
        {
            if (args.NotificationUUID != null && this.notificationsAwaitingCallback.ContainsKey(args.NotificationUUID))
            {
                Growl.Daemon.CallbackInfo cbInfo = this.notificationsAwaitingCallback[args.NotificationUUID];
                this.notificationsAwaitingCallback.Remove(args.NotificationUUID);

                if (this.NotificationCallback != null)
                {
                    if (cbInfo != null)
                    {
                        cbInfo.SetAdditionalInfo(args.CustomInfo);
                    }
                    this.NotificationCallback(cbInfo, args.Result);
                }
            }
        }
示例#3
0
 void starRating_RatingValueChanged(object sender, iRate.Controls.RatingChangedEventArgs e)
 {
     Growl.CoreLibrary.NotificationCallbackEventArgs args = new Growl.CoreLibrary.NotificationCallbackEventArgs(this.NotificationID, Growl.CoreLibrary.CallbackResult.CLICK);
     args.CustomInfo.Add("Rating", e.NewRating.ToString());
     this.OnNotificationClicked(args);
 }