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); }
public WindowSearchPokemonSettings() { InitializeComponent(); loaded = false; search = new PokemonSearchSettings(); PopulateComboBoxes(); LoadSearchSettings(); loaded = true; }
private void OnResetClicked(object sender, RoutedEventArgs e) { search = new PokemonSearchSettings(); LoadSearchSettings(); }