private void button6_Click(object sender, EventArgs e) { DelegateRefreshTree RefreshTree = new DelegateRefreshTree(bindTreeView1); formProperty formPropertyDig = new formProperty(this.treeView1, RefreshTree); formPropertyDig.Show(); }
private void 添加分组_Click(object sender, EventArgs e) { DelegateRefreshTree RefreshTree = new DelegateRefreshTree(bindTreeView1); FormGroup FormGroupDig = new FormGroup(this.treeView1, RefreshTree); FormGroupDig.Show(); this.treeView1.Refresh(); }
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();//重新绑定 } }
public void SetRefreshTreeDelegate(DelegateRefreshTree refreshTree) { fnRefreshTree = refreshTree; }