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();
        }
Пример #3
0
        public override void AddChild(nwdbTree child)
        {
            campTreeMileStone ch = child as campTreeMileStone;

            base.AddChild(child);
            if (ch.MilestoneType == null)
            {
                ch.MilestoneType = this.MilestoneType;
            }
        }
Пример #4
0
        //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);
                }
            }
        }
Пример #5
0
        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);
            }
        }
Пример #6
0
        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);
            }
        }
Пример #7
0
 protected void recurseDeleteChildren(nwdbTree t, TreeNode tn, TreeNodeCollection tnc, BindingSource bs)
 {
 }
Пример #8
0
        private void treeStatistic_AfterSelect(object sender, TreeViewEventArgs e)
        {
            nwdbTree st = treeStatistic.SelectedNode.Tag as nwdbTree;

            bs_sysTreeStatistic.Position = bs_sysTreeStatistic.IndexOf(st);
        }
Пример #9
0
        private void treeSelect_AfterSelect(object sender, TreeViewEventArgs e)
        {
            nwdbTree st = treeSelect.SelectedNode.Tag as nwdbTree;

            lblPath.Text = st.Path("\\");
        }