Exemple #1
0
        private void DSParametersIVCheck_Load(object sender, EventArgs e)
        {
            comboBoxPokemon.DisplayMember = "Key";
            comboBoxPokemon.ValueMember   = "Value";

            pokemonList = new BindingSource(Pokemon.PokemonCollection(), null);
            comboBoxPokemon.DataSource    = pokemonList;
            comboBoxPokemon.SelectedIndex = 0;

            comboBoxNature.DisplayMember = "Key";
            comboBoxNature.ValueMember   = "Value";

            natureList = new BindingSource(Nature.NatureCollection(), null);
            comboBoxNature.DataSource    = natureList;
            comboBoxNature.SelectedIndex = 0;

            characteristicList = new BindingSource(Characteristic.CharacteristicCollection(), null);
            comboBoxCharacteristic.DataSource    = characteristicList;
            comboBoxCharacteristic.SelectedIndex = 0;

            Settings.Default.PropertyChanged += ChangeLanguage;
            SetLanguage();
        }