public RankingCategorySettingsListItem(RankingCategoryInfo info, FilteringSettingsPageContentViewModel parentVM) { _ParentVM = parentVM; CategoryInfo = info; DisplayLabel = info.ToReactivePropertyAsSynchronized(x => x.DisplayLabel); Parameter = info.ToReactivePropertyAsSynchronized(x => x.Parameter); Label = info.DisplayLabel; }
private SettingsPageContentViewModel KindToVM(HohoemaSettingsKind kind) { SettingsPageContentViewModel vm = null; switch (kind) { case HohoemaSettingsKind.Player: vm = new PlayerSeetingPageContentViewModel(HohoemaApp); break; case HohoemaSettingsKind.Filtering: vm = new FilteringSettingsPageContentViewModel(HohoemaApp, PageManager, RankingChoiceDialogService); break; case HohoemaSettingsKind.Cache: vm = new CacheSettingsPageContentViewModel(HohoemaApp, EditAutoCacheConditionDialogService, AcceptCacheUsaseDialogService); break; case HohoemaSettingsKind.Appearance: vm = new AppearanceSettingsPageContentViewModel(HohoemaApp, ToastNotificationService); break; case HohoemaSettingsKind.Share: vm = new ShareSettingsPageContentViewModel(); break; case HohoemaSettingsKind.Feedback: vm = new FeedbackSettingsPageContentViewModel(); break; case HohoemaSettingsKind.About: vm = new AboutSettingsPageContentViewModel(); break; default: break; } return(vm); }