public FileRenderer(FileDialog owner)
            {
                this.owner = owner;

                prevPathes = new List <string>();

                filesTree                       = new TreeView();
                filesTree.Anchor                = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom;
                filesTree.Size                  = new Drawing.Size(Width, Height);
                filesTree.AfterSelect          += filesTree_SelectedNodeChanged;
                filesTree.NodeMouseDoubleClick += filesTree_NodeMouseDoubleClick;
                Controls.Add(filesTree);

                Bitmap folderImage = this.owner.ImageFolder != null ? this.owner.ImageFolder : GenDefaultFolderImage();
                Bitmap fileImage   = this.owner.ImageFile != null ? this.owner.ImageFile : GenDefaultFileImage();

                filesTree.ImageList = new ImageList();
                filesTree.ImageList.Images.Add(folderImage);
                filesTree.ImageList.Images.Add(fileImage);

                currentPath = UnityEngine.Application.dataPath;
            }
 public PathTextBox(FileDialog owner)
 {
     fileDialog = owner;
     Padding    = new Padding(8, 0, 8, 0);
 }