Esempio n. 1
0
        private void btnNewGroup_Click(object sender, EventArgs e)
        {
            int id = TextUtils.ToInt(treeData.FocusedNode.GetValue(colIDTree));
            frmPermissionCategory frm = new frmPermissionCategory();

            frm.ParentID = id;
            if (frm.ShowDialog() == DialogResult.OK)
            {
                _curentNode = frm.CurentNode;
                loadTree();
            }
        }
Esempio n. 2
0
 private void btnEditGroup_Click(object sender, EventArgs e)
 {
     try
     {
         int id = TextUtils.ToInt(treeData.FocusedNode.GetValue(colIDTree));
         FormAndFunctionGroupModel model = (FormAndFunctionGroupModel)FormAndFunctionGroupBO.Instance.FindByPK(id);
         frmPermissionCategory     frm   = new frmPermissionCategory();
         frm.ParentID = model.ParentID;
         frm.Model    = model;
         if (frm.ShowDialog() == DialogResult.OK)
         {
             _curentNode = frm.CurentNode;
             loadTree();
         }
     }
     catch (Exception)
     {
     }
 }