コード例 #1
0
        public OptionsView(OptionsStore optionsStore)
            : this()
        {
            OptionsStore = optionsStore;

            Initialize();
        }
コード例 #2
0
        public OptionsView(OptionsStore optionsStore)
            : this()
        {
            OptionsStore = optionsStore;

            Initialize();
        }
コード例 #3
0
        public SchemeModel(SchemeCache schemeCache, SchemeHistory schemesHistory, OptionsStore optionsStore,
            StudioStylesService studioStylesService, SettingsActivator settingsActivator)
        {
            SchemeCache = schemeCache;
            SchemesHistory = schemesHistory;
            OptionsStore = optionsStore;
            StudioStylesService = studioStylesService;
            SettingsActivator = settingsActivator;

            var stylesPerPage = optionsStore.StylesPerPage;

            PagedSchemesView = new PagedCollectionView(SchemeCache.Schemes) { PageSize = stylesPerPage };
            PagedSchemesView.SortDescriptions.Add(new SortDescription("Rating", ListSortDirection.Descending));

            CurrentSearchString = "";
            SearchValues = new List<string>();
        }