/// <summary> /// 메뉴 카테고리 뷰 화면 /// </summary> private void menu_view() { pnSet pn1 = new pnSet(this, 100, 760, 600, 10); Panel panel = ct.panel(pn1); panel.BackColor = Color.Gainsboro; Controls.Add(panel); pnSet pn2 = new pnSet(this, 570, 760, 700, 10); panel2 = ct.panel(pn2); panel2.BackColor = Color.Gainsboro; Controls.Add(panel2); api = new WebAPI(); ht = new Hashtable(); ht.Add("spName", "sp_MenuCategory_Select"); ht.Add("param", ""); ArrayList list = api.Select("http://192.168.3.15:5000/select", ht); if (list != null) { ArrayList arrayList = api.Button(this, list, Category_Click); for (int i = 0; i < arrayList.Count; i++) { Button button = ct.btn((btnSet)arrayList[i]); panel.Controls.Add(button); } } }