private async void ButtonClick6(object sender, RoutedEventArgs e) { try { ViewModel.SelectedQuest = ViewModel.Quests[6]; } catch (ArgumentOutOfRangeException) { ViewModel.SelectedQuest = ViewModel.Quests[0]; } MapDialog dialog = new MapDialog(ViewModel.SelectedQuest); await dialog.ShowAsync(); }
private async void ButtonClick(object sender, RoutedEventArgs e) { ViewModel.SelectedQuest = ViewModel.Quests[0]; MapDialog dialog = new MapDialog(ViewModel.SelectedQuest); await dialog.ShowAsync(); }