Exemplo n.º 1
0
        /// <summary>
        /// 初始化
        /// </summary>
        void InitMy()
        {
            _myTree      = new TmpltTreeView();
            _statusStrip = new TmpltTreeStatusStrip(_myTree);
            _toolStrip   = new TmpltTreeToolStrip(_myTree, _statusStrip);
            this.Controls.Add(_toolStrip);
            this.Controls.Add(_statusStrip);
            this.Controls.Add(_myTree);

            _toolStrip.Dock   = DockStyle.Top;
            _statusStrip.Dock = DockStyle.Bottom;
            _myTree.Dock      = DockStyle.Fill;

            _toolStrip.BringToFront();
            _myTree.BringToFront();
        }
Exemplo n.º 2
0
 public TmpltTreeToolStrip(TmpltTreeView myTree, TmpltTreeStatusStrip myStatusStrip)
 {
     _myTree        = myTree;
     _myStatusStrip = myStatusStrip;
     InitMy();
 }