示例#1
0
 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();
 }
示例#2
0
 private async void ButtonClick(object sender, RoutedEventArgs e)
 {
     ViewModel.SelectedQuest = ViewModel.Quests[0];
     MapDialog dialog = new MapDialog(ViewModel.SelectedQuest);
     await dialog.ShowAsync();
 }