private void AddItem(ItemType type, string pth, Bitmap img)
 {
     FileBrowserItem item = new FileBrowserItem(type, pth, img, this);
     _items.Add(item);
 }
 public void ClickedItem(FileBrowserItem item)
 {
     RedrawControl.SuspendDrawing(this);
     SuspendLayout();
     if (item.Type == ItemType.Folder || item.Type == ItemType.Drive)
     {
         CurrentDirectory = item.FullPath;
         ClearBrowser();
         BuildFolder();
     }
     else if (item.Type == ItemType.Return)
     {
         CurrentDirectory = Path.GetDirectoryName(item.FullPath);
         ClearBrowser();
         BuildFolder();
     }
     else if (item.Type == ItemType.Collection)
     {
         CurrentDirectory = item.FullPath;
         ClearBrowser();
         BuildCollection();
     }
     ResumeLayout();
     RedrawControl.ResumeDrawing(this);
 }