private void treeData_AfterSelect(object sender, TreeViewEventArgs e) { nwdbTree st = treeData.SelectedNode.Tag as nwdbTree; lblTreePath.Text = st.Path(" \\ "); cEditor.BindingSource.Position = cEditor.BindingSource.IndexOf(st); }
private void treeMasterDetail_AfterSelect(object sender, TreeViewEventArgs e) { nwdbTree st = treeMasterDetail.SelectedNode.Tag as nwdbTree; lblMasterPath.Text = st.Path(" \\ "); cEditor.BindingSource.Position = cEditor.BindingSource.IndexOf(st); UpdateMasterDetailPath(); }
public override void AddChild(nwdbTree child) { campTreeMileStone ch = child as campTreeMileStone; base.AddChild(child); if (ch.MilestoneType == null) { ch.MilestoneType = this.MilestoneType; } }
//Events public virtual void defEventTreeAfterSelect(object sender, EventArgs e) { nwdbTree n = this.SelectedNode.Tag as nwdbTree; if (n != null) { if (this._TreeBindingSource != null) { this._TreeBindingSource.Position = this._TreeBindingSource.IndexOf(n); } } }
protected void recurseAddChildren(nwdbTree t, TreeNode tn) { TreeNode child; foreach (nwdbTree leaf in t.Children) { child = new TreeNode(leaf.Name); child.Tag = leaf; child.Name = leaf.Name; Debug.Print("Adding Child: " + child.Name + "to leaf" + leaf.Name); recurseAddChildren(leaf, child); Debug.Print("Finished child: " + child.Name); tn.Nodes.Add(child); } }
public nwdbTree Select <T>(ISession i, nwdbTree current) where T : nwdbTree { frmSelectTree frm = new frmSelectTree(); frm.Selected = current; frm.Session = i; frm.TreeManager = this; this.FillTreeNodeCollection <T>(i, frm.GetTreeNodes()); if (frm.ShowDialog() == DialogResult.OK) { return(frm.Selected); } else { return(current); } }
protected void recurseDeleteChildren(nwdbTree t, TreeNode tn, TreeNodeCollection tnc, BindingSource bs) { }
private void treeStatistic_AfterSelect(object sender, TreeViewEventArgs e) { nwdbTree st = treeStatistic.SelectedNode.Tag as nwdbTree; bs_sysTreeStatistic.Position = bs_sysTreeStatistic.IndexOf(st); }
private void treeSelect_AfterSelect(object sender, TreeViewEventArgs e) { nwdbTree st = treeSelect.SelectedNode.Tag as nwdbTree; lblPath.Text = st.Path("\\"); }