private void ctxLoadMap_Click(object sender, EventArgs e) { OpenFileDialog openFile = new OpenFileDialog(); openFile.Filter = "References |*.ref"; if (openFile.ShowDialog() == DialogResult.OK) { MapReferences newRef = new MapReferences(); newRef.ReferenceInfo = ReadReferenceFiles.ReadFile(openFile.FileName); newRef.ViableInfo = ReadReferenceFiles.LoadMap(newRef.ReferenceInfo.RefreshFile); Mapped.LoadReferencesToTree(projectView, newRef, ctxTreeMenu); } }