Exemplo n.º 1
0
        /// <summary>
        /// Get WifiRemote representation of the MpMovingPictures rating dialog
        /// </summary>
        /// <returns>WifiRemote Dialog Instance</returns>
        public static MpDialogMovingPicturesRating GetDialogMovingPicturesRating()
        {
            Cornerstone.MP.GUIGeneralRating menu         = (Cornerstone.MP.GUIGeneralRating)GUIWindowManager.GetWindow(MOPI_RATING_ID);
            MpDialogMovingPicturesRating    ratingDialog = new MpDialogMovingPicturesRating(menu);

            return(ratingDialog);
        }
Exemplo n.º 2
0
        public MpDialogMovingPicturesRating(Cornerstone.MP.GUIGeneralRating dialog)
            : base(dialog)
        {
            this.mpDialog   = dialog;
            this.DialogType = dialog.GetModuleName();
            this.DialogId   = dialog.GetID;
            this.Rating     = dialog.Rating;
            this.RatingMax  = (dialog._displayStars == Cornerstone.MP.GUIGeneralRating.StarDisplay.FIVE_STARS) ? 5 : 10;
            GetHeading(dialog, 1);
            GetText(dialog, 2, 3, 4, 5);

            this.AvailableActions.Add("cancel");
            this.AvailableActions.Add("setrating");
            this.AvailableActions.Add("confirmrating");
        }
        public MpDialogMovingPicturesRating(Cornerstone.MP.GUIGeneralRating dialog)
            : base(dialog)
        {
            this.mpDialog = dialog;
            this.DialogType = dialog.GetModuleName();
            this.DialogId = dialog.GetID;
            this.Rating = dialog.Rating;
            this.RatingMax = (dialog._displayStars == Cornerstone.MP.GUIGeneralRating.StarDisplay.FIVE_STARS) ? 5 : 10;
            GetHeading(dialog, 1);
            GetText(dialog, 2, 3, 4, 5);

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