Пример #1
0
        /// <summary>
        /// Get WifiRemote representation of the MpTrakt rating dialog
        /// </summary>
        /// <returns>WifiRemote Dialog Instance</returns>
        public static MpDialogTraktRating GetDialogTraktRating()
        {
            TraktPlugin.GUI.GUIRateDialog menu         = (TraktPlugin.GUI.GUIRateDialog)GUIWindowManager.GetWindow(TRAKT_RATING_ID);
            MpDialogTraktRating           ratingDialog = new MpDialogTraktRating(menu);

            return(ratingDialog);
        }
        public MpDialogTraktRating(TraktPlugin.GUI.GUIRateDialog dialog)
            : base(dialog)
        {
            this.mpDialog            = dialog;
            this.DialogType          = dialog.GetModuleName();
            this.DialogId            = dialog.GetID;
            this.Rating              = ratingFromTraktRateValue(dialog.Rated);
            this.ShowAdvancedRatings = dialog.ShowAdvancedRatings;
            GetHeading(dialog, 1);
            GetText(dialog, 2, 3, 4, 5);

            this.AvailableActions.Add("cancel");
            this.AvailableActions.Add("setrating");
            this.AvailableActions.Add("confirmrating");
        }
Пример #3
0
        public MpDialogTraktRating(TraktPlugin.GUI.GUIRateDialog dialog)
            : base(dialog)
        {
            this.mpDialog = dialog;
            this.DialogType = dialog.GetModuleName();
            this.DialogId = dialog.GetID;
            this.Rating = ratingFromTraktRateValue(dialog.Rated);
            this.ShowAdvancedRatings = dialog.ShowAdvancedRatings;
            GetHeading(dialog, 1);
            GetText(dialog, 2, 3, 4, 5);

            this.AvailableActions.Add("cancel");
            this.AvailableActions.Add("setrating");
            this.AvailableActions.Add("confirmrating");
        }