private void txt_FreqStart_TextChanged(object sender, EventArgs e) { if (this.txt_FreqStart.Text == null || this.txt_FreqStart.Text == "") { return; } Decimal frq = Decimal.Parse(this.txt_FreqStart.Text); string text = this.cmb_FreqStep.Text; if (DataForm.GetBandIdx(frq) == -1) { return; } this.cmb_FreqStep.Items.Clear(); this.cmb_FreqStep.Items.AddRange((object[])this.cDataForm.GetSTEPList(frq)); if (Array.IndexOf <string>(this.cDataForm.GetSTEPList(frq), text) >= 0) { this.cmb_FreqStep.Text = text; } else { this.cmb_FreqStep.SelectedIndex = 0; } }