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