コード例 #1
0
        public static WindowSearchPokemonSettings Show(Window owner, PokemonSearchSettings search = null, List <IPokemon> results = null)
        {
            WindowSearchPokemonSettings window = new WindowSearchPokemonSettings();

            window.SearchSettings = search;
            window.Results        = results;
            window.Owner          = owner;
            window.Show();

            return(window);
        }
コード例 #2
0
        public WindowSearchPokemonSettings()
        {
            InitializeComponent();
            loaded = false;

            search = new PokemonSearchSettings();

            PopulateComboBoxes();
            LoadSearchSettings();

            loaded = true;
        }
コード例 #3
0
 private void OnResetClicked(object sender, RoutedEventArgs e)
 {
     search = new PokemonSearchSettings();
     LoadSearchSettings();
 }