Пример #1
0
        public MovieItemFormatEditData()
        {
#if SL
            ItemsSourceHelper.RequestFormatItems((result) => List = result);
#else
            List = ItemsSourceHelper.FormatsList;
#endif
        }
Пример #2
0
        public PersonGenderEditData()
        {
#if SL
            ItemsSourceHelper.RequestGenderItems((result) => List = result);
#else
            List = ItemsSourceHelper.GendersList;
#endif
        }
Пример #3
0
        public MovieRatingEditData()
        {
#if SL
            ItemsSourceHelper.RequestRatingItems((result) => List = result);
#else
            List = ItemsSourceHelper.RatingsList;
#endif
        }
Пример #4
0
        void RetrieveFormatIcon() {
#if SL
            ItemsSourceHelper.RequestFormatItems((result) =>
            {
                if(MovieCategoryEditObject.CategoryPrice == null) return;
#else
            List<FormatItem> result = ItemsSourceHelper.FormatsList;
#endif
                foreach(FormatItem item in result) {
                    if(item.Value == MovieCategoryEditObject.CategoryPrice.Format) {
                        FormatIcon = item.Icon;
                        break;
                    }
                }
#if SL
            });
#endif
        }