Beispiel #1
0
        private void ButtonRow_Click(object sender, RoutedEventArgs e)
        {
            Region region = (Region)((Button)e.Source).DataContext;

            WorldRegion worldRegion = new WorldRegion(region);

            Hide();
            worldRegion.Show();
        }
Beispiel #2
0
        private void BackToRegion(bool isRun)
        {
            WorldRegion worldRegion = new WorldRegion(PokemonEncountered.LocalPokemon.Local.Region);

            if (isRun)
            {
                MessageBox.Show("Got away safely!", "Information", MessageBoxButton.OK, MessageBoxImage.Information);
            }

            worldRegion.Show();
            Hide();
        }