Пример #1
0
        /// <summary>
        /// 카테고리 클릭 버튼 이벤트
        /// </summary>
        private void Category_Click(object sender, EventArgs e)
        {
            Button btn = (Button)sender;

            _bNo = btn.Name;
            //MessageBox.Show(_bNo);

            ht = new Hashtable();
            ht.Add("spName", "sp_Menu_Select");
            ht.Add("param", "_bNo:" + _bNo);
            panel2.Controls.Clear();
            list = api.Select("http://192.168.3.15:5000/select", ht);
            if (list != null)
            {
                ArrayList arrayList = api.Button2(panel2, list, Menu_Click);
                for (int i = 0; i < arrayList.Count; i++)
                {
                    Button button = ct.btn((btnSet)arrayList[i]);
                    panel2.Controls.Add(button);
                }
            }
        }