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); }
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); } } }