CodeTV.WizardForm.comboBoxScanCountry_SelectedIndexChanged C# (CSharp) Method

comboBoxScanCountry_SelectedIndexChanged() private method

private comboBoxScanCountry_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void comboBoxScanCountry_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.currentFrequencies != null)
            {
                this.comboBoxScanRegion.Items.Clear();
                if (this.currentFrequencies.TryGetValue((string)this.comboBoxScanCountry.SelectedItem, out this.currentCountries))
                {
                    foreach (string region in this.currentCountries.Keys)
                        this.comboBoxScanRegion.Items.Add(region);
                }
                this.comboBoxScanRegion.SelectedIndex = 0;
            }
        }