public override void Attach(TreeViewFolderBrowserNodeFactory helper) { base.Attach(helper); // helper.TreeView.ShowRootLines = true; helper.TreeView.ShowPlusMinus = true; }
/// <summary> /// Internal helper methods to create nodes and assign them as root or child nodes. /// </summary> /// <param name="helper"></param> /// <param name="parentNode"></param> /// <param name="parentCollection"></param> private void RequestHelper(TreeViewFolderBrowserNodeFactory helper, TreeNodePath parentNode, System.Windows.Forms.TreeNodeCollection parentCollection) { FTPLib.FtpClient ftp = FTP; if (parentNode != null) { ftp.ChangeDir(parentNode.Path); } else { ftp.ChangeDir(_directorySeparatorChar); } // foreach (FTPLib.ServerFileData serverData in ftp.List()) { // skip files if there should not be filled in if (!serverData.isDirectory && !ShowFiles) { continue; } // CreateTreeNode(parentNode, serverData.fileName, parentNode != null ? parentNode.Path + "/" + serverData.fileName : _directorySeparatorChar + serverData.fileName, !serverData.isDirectory, serverData.isDirectory, false); } // return; }
public void Attach(TreeViewFolderBrowserNodeFactory helper) { _helper = helper; // _helper.TreeView.ImageList = this._imageList; }
/// <summary> /// The <c>TreeViewFolderBrowser</c> calls this method to let the provider detach itself. /// </summary> public virtual void Detach() { _helper = null; }
/// <summary> /// The <c>TreeViewFolderBrowser</c> calls this method to let the provider initialize itself. /// </summary> /// <param name="helper">Helper class to create TreeNodes</param> public virtual void Attach(TreeViewFolderBrowserNodeFactory helper) { _helper = helper; }
/// <summary> /// Internal helper methods to create nodes and assign them as root or child nodes. /// </summary> /// <param name="helper"></param> /// <param name="parentNode"></param> /// <param name="parentCollection"></param> private void RequestHelper(TreeViewFolderBrowserNodeFactory helper, TreeNodePath parentNode, System.Windows.Forms.TreeNodeCollection parentCollection) { FTPLib.FtpClient ftp = FTP; if (parentNode != null) { ftp.ChangeDir(parentNode.Path); } else { ftp.ChangeDir(_directorySeparatorChar); } // foreach(FTPLib.ServerFileData serverData in ftp.List()) { // skip files if there should not be filled in if(!serverData.isDirectory && !ShowFiles) continue; // CreateTreeNode(parentNode, serverData.fileName, parentNode!=null ? parentNode.Path + "/"+ serverData.fileName : _directorySeparatorChar + serverData.fileName, !serverData.isDirectory, serverData.isDirectory, false); } // return; }
public override void Attach(TreeViewFolderBrowserNodeFactory helper) { base.Attach(helper); // helper.TreeView.ShowRootLines = true; helper.TreeView.ShowPlusMinus = true; }
/// <summary> /// Attaches the imagelist to the tree view /// </summary> /// <param name="helper"></param> public override void Attach(TreeViewFolderBrowserNodeFactory helper) { base.Attach (helper); // helper.TreeView.ImageList = this._imageList; }
/// <summary> /// The <c>TreeViewFolderBrowser</c> calls this method to let the provider detach itself. /// </summary> public virtual void Detach() { _helper = null; }
/// <summary> /// The <c>TreeViewFolderBrowser</c> calls this method to let the provider initialize itself. /// </summary> /// <param name="helper">Helper class to create TreeNodes</param> public virtual void Attach(TreeViewFolderBrowserNodeFactory helper) { _helper = helper; }
/// <summary> /// Attaches the imagelist to the tree view /// </summary> /// <param name="helper"></param> public override void Attach(TreeViewFolderBrowserNodeFactory helper) { base.Attach(helper); // helper.TreeView.ImageList = this._imageList; }
public void Attach(TreeViewFolderBrowserNodeFactory helper) { _helper = helper; // _helper.TreeView.ImageList = this._imageList; }