Beispiel #1
0
        private void btnNewGroup_Click(object sender, EventArgs e)
        {
            frmBaiTHGroup frm = new frmBaiTHGroup();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                _curentNode = frm.CurentNode;
                loadTree();
            }
        }
Beispiel #2
0
 private void btnEditGroup_Click(object sender, EventArgs e)
 {
     try
     {
         int id = TextUtils.ToInt(treeData.FocusedNode.GetValue(colIDTree));
         if (id == 0)
         {
             return;
         }
         BaiThucHanhGroupModel model = (BaiThucHanhGroupModel)BaiThucHanhGroupBO.Instance.FindByPK(id);
         frmBaiTHGroup         frm   = new frmBaiTHGroup();
         frm.Model = model;
         if (frm.ShowDialog() == DialogResult.OK)
         {
             _curentNode = frm.CurentNode;
             loadTree();
         }
     }
     catch (Exception)
     {
     }
 }