private void 属性编辑_Click(object sender, EventArgs e) { TreeListNode selectNode = treeList1.FocusedNode; FormAttrAdd formAttr = new FormAttrAdd(checkNo, selectNode, "edit", this.scheme, this.treeList1); formAttr.ShowDialog(); }
private void 添加项_Click(object sender, EventArgs e) { selectedId = treeList1.FocusedNode == null ? "0" : treeList1.FocusedNode.GetValue("ID").ToString(); TreeListNode selectNode = treeList1.FocusedNode; DelegateRefreshTree RefreshTree = new DelegateRefreshTree(bindtreeViewAttr); FormAttrAdd formAttr = new FormAttrAdd(checkNo, selectNode, "add", this.scheme, this.treeList1); formAttr.ShowDialog(); if (formAttr.DialogResult == DialogResult.OK) { //this.bindtreeViewAttr();//重新绑定 } }