private void GoToStatistic(StatisticSelectorType item) { if (item.Type == StatisticType.Cashflow) { navigationService.NavigateTo(ViewModelLocator.StatisticCashFlow); } else if (item.Type == StatisticType.CategorySpreading) { navigationService.NavigateTo(ViewModelLocator.StatisticCategorySpreading); } else if (item.Type == StatisticType.CategorySummary) { navigationService.NavigateTo(ViewModelLocator.StatisticCategorySummary); } }
private async Task GoToStatisticAsync(StatisticSelectorType item) { if (item.Type == StatisticType.Cashflow) { await Shell.Current.GoToAsync(ViewModelLocator.StatisticCashFlowRoute); } else if (item.Type == StatisticType.CategorySpreading) { await Shell.Current.GoToAsync(ViewModelLocator.StatisticCategorySpreadingRoute); } else if (item.Type == StatisticType.CategorySummary) { await Shell.Current.GoToAsync(ViewModelLocator.StatisticCategorySummaryRoute); } }
private void GoToStatistic(StatisticSelectorType item) { switch (item.Type) { case StatisticType.Cashflow: navigationService.NavigateTo(ViewModelLocator.StatisticCashFlow); break; case StatisticType.CategorySpreading: navigationService.NavigateTo(ViewModelLocator.StatisticCategorySpreading); break; case StatisticType.CategorySummary: navigationService.NavigateTo(ViewModelLocator.StatisticCategorySummary); break; } }
private void GoToStatistic(StatisticSelectorType item) { switch (item.Type) { case StatisticType.Cashflow: ShowViewModel <StatisticCashFlowViewModel>(); break; case StatisticType.CategorySpreading: ShowViewModel <StatisticCategorySpreadingViewModel>(); break; case StatisticType.CategorySummary: ShowViewModel <StatisticCategorySummaryViewModel>(); break; } }
private void GoToStatistic(StatisticSelectorType item) { if (item.Type == StatisticType.Cashflow) { navigationService.Navigate <StatisticCashFlowViewModel>(); } else if (item.Type == StatisticType.MonthlyAccountCashFlow) { navigationService.Navigate <StatisticAccountMonthlyCashflowViewModel>(); } else if (item.Type == StatisticType.CategorySpreading) { navigationService.Navigate <StatisticCategorySpreadingViewModel>(); } else if (item.Type == StatisticType.CategorySummary) { navigationService.Navigate <StatisticCategorySummaryViewModel>(); } }
private async Task GoToStatistic(StatisticSelectorType item) { switch (item.Type) { case StatisticType.Cashflow: await navigationService.Navigate <StatisticCashFlowViewModel>(); break; case StatisticType.CategorySpreading: await navigationService.Navigate <StatisticCategorySpreadingViewModel>(); break; case StatisticType.CategorySummary: await navigationService.Navigate <StatisticCategorySummaryViewModel>(); break; } }
private static async Task GoToStatisticAsync(StatisticSelectorType item) { if (item.Type == StatisticType.Cashflow) { await Shell.Current.GoToAsync(ViewModelLocator.StatisticCashFlowRoute); } else if (item.Type == StatisticType.CategorySpreading) { await Shell.Current.GoToAsync(ViewModelLocator.StatisticCategorySpreadingRoute); } else if (item.Type == StatisticType.CategorySummary) { await Shell.Current.GoToAsync(ViewModelLocator.StatisticCategorySummaryRoute); } else if (item.Type == StatisticType.MonthlyAccountCashFlow) { await Shell.Current.GoToAsync(ViewModelLocator.StatisticAccountMonthlyCashflowRoute); } else if (item.Type == StatisticType.CategoryProgression) { await Shell.Current.GoToAsync(ViewModelLocator.StatisticCategoryProgressionRoute); } }