Exemplo n.º 1
0
        private async void loadGameButton_Click(object sender, RoutedEventArgs e)
        {
            LoadDialog          loadDialog = new LoadDialog();
            ContentDialogResult result     = await loadDialog.ShowAsync();

            if (result == ContentDialogResult.Primary)
            {
                this.Frame.Navigate(typeof(GamePage), loadDialog.SaveGameName);
            }
        }
Exemplo n.º 2
0
        private async void loadGameButton_Click(object sender, RoutedEventArgs e)
        {
            LoadDialog          loadDialog = new LoadDialog();
            ContentDialogResult result     = await loadDialog.ShowAsync();

            if (result == ContentDialogResult.Primary)
            {
                mapLearner = new MapLearner(loadDialog.SaveGameName);
                initializeBoard();
            }
        }