//버튼 UI private void btn_Load() { ArrayList array = new ArrayList(); array.Add(new pnSet(this, 10, 310, 480, 20)); array.Add(new pnSet(this, 10, 310, 480, 450)); array.Add(new pnSet(this, 420, 20, 30, 375)); array.Add(new pnSet(this, 730, 20, 520, 375)); array.Add(new pnSet(this, 730, 20, 520, 375)); array.Add(new btnSet(this, "count", "카운트", 175, 310, 1080, 450, btn_Click)); for (int i = 0; i < array.Count; i++) { if (typeof(pnSet) == array[i].GetType()) { Panel panel = ct.panel((pnSet)array[i]); panel.BackColor = Color.Silver; pn4.Controls.Add(panel); } if (typeof(btnSet) == array[i].GetType()) { Button button = ct.btn((btnSet)array[i]); button.BackColor = Color.Silver; button.Enabled = false; button.FlatStyle = FlatStyle.Flat; button.FlatAppearance.BorderSize = 0; button.Font = new Font("Tahoma", 20, FontStyle.Bold); pn4.Controls.Add(button); } } api = new WebAPI(); ht = new Hashtable(); ht.Add("spName", "sp_Table_Select"); ht.Add("param", ""); ArrayList list = api.Select("http://192.168.3.15:5000/select", ht); if (list != null) { ArrayList arrayList = api.Button3(pn4, list, btn_Click); for (int i = 0; i < arrayList.Count; i++) { Button button = ct.btn((btnSet)arrayList[i]); button.FlatStyle = FlatStyle.Flat; button.FlatAppearance.BorderSize = 0; button.Font = new Font("Tahoma", 15, FontStyle.Bold); pn4.Controls.Add(button); } } }