Пример #1
0
 private void Extract_Click(object sender, EventArgs e)
 {
     if (SelectedNode != null)
     {
         List <NexonArchiveFileEntry> file = new List <NexonArchiveFileEntry>();
         FolderTreeView.GetFilesRecursive(base.SelectedNode, file);
         OnExtractFolder(new FilesEventArgs(FolderTreeView.GetFullPath(base.SelectedNode), file));
     }
 }
Пример #2
0
 private void VerifyStrip_Click(object sender, EventArgs e)
 {
     if (Nar != null && FolderTree.TopNode != null)
     {
         List <NexonArchiveFileEntry> files = new List <NexonArchiveFileEntry>();
         FolderTreeView.GetFilesRecursive(FolderTree.TopNode, files);
         VerifyFiles(this, new FilesEventArgs(FolderTreeView.GetFullPath(FolderTree.TopNode), files));
     }
 }
Пример #3
0
        public static string GetFullPath(TreeNode node)
        {
            if (node == null || node.Parent == null)
            {
                return(String.Empty);
            }
            if (node.Parent != null && node.Parent.Parent != null)
            {
                return(FolderTreeView.GetFullPath(node.Parent) + "/" + node.Text);
            }

            return(node.Text);
        }
Пример #4
0
 private void FolderTreeView_AfterSelect(object sender, TreeViewEventArgs e)
 {
     OnShowFolder(new FilesEventArgs(FolderTreeView.GetFullPath(e.Node), e.Node.Tag as List <NexonArchiveFileEntry>));
 }