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); }