Пример #1
0
        public System.Windows.Forms.Control CreatePropertyPage()
        {
            var editor = new DATreeView();

            editor.TreeStyle = TreeStyle.SelectOne;
            editor.TreeBehaviour.ShowFilter = node => node.IsDatabaseNodeOrParent();
            editor.RootPath          = "data:";
            editor.ActiveNodeChange += new EventHandler(editor_ActiveNodeChange);
            return(editor);
        }
Пример #2
0
 public DATreeNode(ITreeNode node, DATreeView tree)
 {
     m_tree        = tree;
     m_node        = node;
     node.RealNode = this;
     Text          = Texts.Get(node.Title);
     //UpdateImageIndex();
     m_menu = new ContextMenuStripEx();
     //this.ContextMenuStrip = m_menu;
     //m_menu.Opening += new System.ComponentModel.CancelEventHandler(m_menu_Opening);
     tree.DispatchAddedNode(this);
 }