public Map_Code_Viewer NewMapFile() { Map_Code_Viewer mcv = new Map_Code_Viewer(); mcv.F1 = this; mcv.MdiParent = this; mcv.Show(); return(mcv); }
private void openToolStripMenuItem_Click(object sender, EventArgs e) { Map_Code_Viewer mcv = NewMapFile(); if (mcv != null) { if (!mcv.OpenMapCode()) { mcv.Close(); } } }