private void exportFileToolStripMenuItem_Click(object sender, EventArgs e) { FileNode Node = (FileNode)treeView1.SelectedNode; SaveFileDialog s = new SaveFileDialog() { Filter = Node.GetFileFilter(), FileName = Node.Entry.Name }; if (s.ShowDialog() != DialogResult.OK) { return; } using (FileStream Output = File.Open(s.FileName, FileMode.Create, FileAccess.Write), GCMStream = OpenGCMStream()) { GCM.ExportFile(Node.Entry, GCMStream, Output); } }