Here are the examples of the csharp api class BSA_Browser.BSABrowser.tvFolders_BeforeExpand(object, System.Windows.Forms.TreeViewCancelEventArgs) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Example
0
1. Example
Project: BSA_Browser
Source File: BSABrowser.cs
Source File: BSABrowser.cs
private void tvFolders_AfterSelect(object sender, TreeViewEventArgs e) { var rootNode = this.GetRootNode(e.Node); string path = (string)e.Node.Tag; // If AllFiles is null, trigger event which will populate it if (rootNode.AllFiles == null) tvFolders_BeforeExpand(null, new TreeViewCancelEventArgs(e.Node, false, TreeViewAction.Unknown)); if (path == null) // Root node is selected, so show all files rootNode.Files = rootNode.AllFiles; else { // Only show files under selected node var lvis = new List<ArchiveEntry>(rootNode.AllFiles.Length); foreach (var lvi in rootNode.AllFiles) if (lvi.FullPath.StartsWith(path)) lvis.Add(lvi); rootNode.Files = lvis.ToArray(); } lvFiles.ScrollToTop(); this.DoSearch(); }