Ejemplo n.º 1
0
        private void InitUiModels()
        {
            StylesVariationList           = new ObservableCollection <ImageItem>();
            StylesVariationListSelectedId = new ObservableInt {
                Number = -1
            };
            StylesVariationListSelectedItem = new ObservableImageItem();
            CurrentVariantCategory          = new ObservableString();
            CurrentVariantCategoryId        = new ObservableInt {
                Number = -1
            };
            VariantsCategory   = new ObservableCollection <string>();
            SelectedFontId     = new ObservableInt();
            SelectedFontFamily = new ObservableFont();

            StylesPreviewList           = new ObservableCollection <ImageItem>();
            StylesPreviewListSelectedId = new ObservableInt {
                Number = -1
            };
            StylesPreviewListSelectedItem = new ObservableImageItem();

            ImageSelectionList = new ObservableCollection <ImageItem>();
            ImageSelectionList.Add(CreateChoosePicturesItem());

            var loadedImageSelectionList = StoragePath.Load();

            foreach (var item in loadedImageSelectionList)
            {
                ImageSelectionList.Add(item);
            }

            ImageSelectionListSelectedId = new ObservableInt {
                Number = -1
            };
            ImageSelectionListSelectedItem = new ObservableImageItem();
            IsActiveDownloadProgressRing   = new ObservableBoolean {
                Flag = false
            };
        }