Configurator.HostsTreeViewer.Get C# (CSharp) Method

Get() public method

public Get ( Position position ) : TreeView
position Position
return System.Windows.Forms.TreeView
        public TreeView Get(Position position)
        {
            this.treeView = new TreeView
            {
                Width = position.Width,
                Height = position.Height,
                Left = position.Left,
                Top = position.Top,
                AllowDrop = true
            };
            this.treeView.DragDrop += this.TreeView1OnDragDrop;
            this.treeView.DragEnter += this.TreeView1OnDragEnter;
            this.treeView.MouseDown += treeView_MouseDown;
            this.treeView.AfterLabelEdit += TreeViewOnAfterLabelEdit;
            this.treeView.Scrollable = true;

            this.InitTreeView();
            this.PopulateTree();

            return this.treeView;
        }