Raccoom.Windows.Forms.TreeViewFolderBrowser.GetSubDirs C# (CSharp) Method

GetSubDirs() protected method

Populates the Directory structure for a given path.
protected GetSubDirs ( TreeNodePath parent, System.Windows.Forms.TreeViewCancelEventArgs e ) : void
parent TreeNodePath
e System.Windows.Forms.TreeViewCancelEventArgs
return void
        protected virtual void GetSubDirs(TreeNodePath parent, TreeViewCancelEventArgs e)
        {
            if (parent.Path == null) return;
              // everything ok, here we go
              BeginUpdate();
              try
              {
            parent.RemoveDummyNode();
            // if we have not scanned this folder before
            if (parent.Nodes.Count == 0)
            {
              _dataProvider.RequestSubDirs(_helper, parent, e);
            }
              }
              catch (Exception ex)
              {
            throw ex;
              }
              finally
              {
            EndUpdate();
              }
        }