示例#1
0
        public ReflectorTreeView()
        {
            this.testDomains = new TreeTestDomainCollection(this);
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            Application.AddMessageFilter(this);
            DragAcceptFiles(this.Handle, true);

            this.state = new UnitTreeViewState(this.typeTree,
                                               new UnitTreeViewState.UpdateTreeNodeDelegate(this.UpdateNode)
                                               );

            this.treeNodeFacade      = new TestTreeNodeFacade();
            this.reflectionImageList = new ReflectionImageList(this.treeImageList);

            this.createNode   = new UnitTreeNodeCreatorDelegate(this.CreateNode);
            this.addChildNode = new AddChildNodeDelegate(this.AddChildNode);

            this.testDomains.Watcher.AssemblyChangedEvent += new MbUnit.Core.Remoting.AssemblyWatcher.AssemblyChangedHandler(Watcher_AssemblyChangedEvent);

            this.SetStyle(ControlStyles.DoubleBuffer, true);
            this.SetStyle(ControlStyles.ResizeRedraw, true);
        }
        public ReflectorTreeView()
        {
            this.testDomains=new TreeTestDomainCollection(this);
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            Application.AddMessageFilter(this);
            DragAcceptFiles(this.Handle, true);

            this.state = new UnitTreeViewState(this.typeTree,
                new UnitTreeViewState.UpdateTreeNodeDelegate(this.UpdateNode)
                );

            this.treeNodeFacade= new TestTreeNodeFacade();
            this.reflectionImageList = new ReflectionImageList(this.treeImageList);

            this.createNode = new UnitTreeNodeCreatorDelegate(this.CreateNode);
            this.addChildNode = new AddChildNodeDelegate(this.AddChildNode);

            this.testDomains.Watcher.AssemblyChangedEvent+=new MbUnit.Core.Remoting.AssemblyWatcher.AssemblyChangedHandler(Watcher_AssemblyChangedEvent);

            this.SetStyle(ControlStyles.DoubleBuffer,true);
            this.SetStyle(ControlStyles.ResizeRedraw,true);
        }