public void PrepareGCTWizard(int selectedCodeIndex) { comboBoxCodeType.SelectedIndex = 0; comboBoxCodeName.Items.Clear(); for (int i = 0; i < GCTCodeContents.Count; i++) { comboBoxCodeName.Items.Add(GCTCodeContents.GetCodeName(i)); } comboBoxCodeName.Items.Add("New Code"); indexToSelect = selectedCodeIndex; }
public void PrepareGCTWizard(int selectedCodeIndex) { // Select the correct code type comboBoxCodeType.SelectedIndex = 0; // Populate the code name drop down comboBoxCodeName.Items.Clear(); for (int i = 0; i < GCTCodeContents.Count; i++) { comboBoxCodeName.Items.Add(GCTCodeContents.GetCodeName(i)); } comboBoxCodeName.Items.Add("New Code"); indexToSelect = selectedCodeIndex; //GCTCodeContents.SelectedIndex; //comboBoxCodeName.SelectedIndex = 0; }