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