public GCMNode CreateTreeNode(string FileName) { GCMNode Root = new GCMNode(this, FileName); int i = 1; ParseFileSystem(Root, ref i, Entries.Count); return(Root); }
private void OpenGCM(string FileName) { GCMFilePath = FileName; // Read file using (Stream GCMStream = OpenGCMStream()) { GCM = new GCM(GCMStream); } // Add to recent file list RecentFileList.AddFile(FileName); RecentFileList.SaveToDisk(); // Create tree nodes GCMNode Root = GCM.CreateTreeNode(FileName); treeView1.Nodes.Clear(); treeView1.Nodes.Add(Root); SetContextMenuStrip(Root); }