Ejemplo n.º 1
0
        public GCMNode CreateTreeNode(string FileName)
        {
            GCMNode Root = new GCMNode(this, FileName);

            int i = 1;

            ParseFileSystem(Root, ref i, Entries.Count);

            return(Root);
        }
Ejemplo n.º 2
0
        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);
        }