public void get_Combo() { comm = new Commons(); ComboBox combo = new ComboBox(); comboboxSet cb1 = new comboboxSet(this, "month", 120, 35, 600, 45); combo = ct.combobox(cb1); combo.Font = new Font("Verdana", 10.5f, FontStyle.Italic); combo.Text = "분기선택"; combo.Items.Add("1분기"); combo.Items.Add("2분기"); combo.Items.Add("3분기"); combo.Items.Add("4분기"); combo.SelectedIndexChanged += Combo_SelectedIndexChanged; Controls.Add(combo); }
public void get_Combo() { comm = new Commons(); ArrayList list = new ArrayList(); list.Add(new comboboxSet(this, "cmonth", 60, 35, 170, 180)); list.Add(new comboboxSet(this, "cnum", 100, 35, 50, 300)); list.Add(new comboboxSet(this, "crate", 300, 35, 50, 420)); for (int i = 0; i < list.Count; i++) { ComboBox combo = ct.combobox((comboboxSet)list[i]); combo.Font = new Font("Verdana", 14.5f, FontStyle.Bold); if (i == 0) { combo.Text = "월"; for (int j = 1; j < 13; j++) { combo.Items.Add(j + "월"); } } else if (i == 1) { combo.Text = "010"; combo.Items.Add("010"); combo.Items.Add("017"); combo.Items.Add("018"); combo.Items.Add("016"); } else if (i == 2) { combo.Text = "브론즈"; combo.Items.Add("브론즈"); combo.Items.Add("실버"); combo.Items.Add("골드"); combo.Items.Add("플래티넘"); combo.Items.Add("다이아몬드"); } Controls.Add(combo); } }