Exemple #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);
            }
        }
        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();
            }
        }