Exemplo n.º 1
0
        private async Task GoToSettings(SettingsSelectorType item)
        {
            switch (item.Type)
            {
            case SettingsType.Categories:
                await navigationService.Navigate <CategoryListViewModel>();

                break;

            case SettingsType.BackgroundJob:
                await navigationService.Navigate <SettingsBackgroundJobViewModel>();

                break;

            case SettingsType.Backup:
                await navigationService.Navigate <BackupViewModel>();

                break;

            case SettingsType.About:
                await navigationService.Navigate <AboutViewModel>();

                break;
            }
        }
Exemplo n.º 2
0
        private void GoToSettings(SettingsSelectorType item)
        {
            switch (item.Type)
            {
            case SettingsType.Personalization:
                navigationService.NavigateTo(ViewModelLocator.SettingsPersonalization);
                break;

            case SettingsType.Regional:
                navigationService.NavigateTo(ViewModelLocator.SettingsRegional);
                break;

            case SettingsType.Categories:
                navigationService.NavigateTo(ViewModelLocator.CategoryList);
                break;

            case SettingsType.BackgroundJob:
                navigationService.NavigateTo(ViewModelLocator.SettingsBackgroundJob);
                break;

            case SettingsType.Backup:
                navigationService.NavigateTo(ViewModelLocator.Backup);
                break;

            case SettingsType.About:
                navigationService.NavigateTo(ViewModelLocator.About);
                break;
            }
        }