private void button1_Click(object sender, EventArgs e) { frmNewMap nm = new frmNewMap(); mapInfo map = nm.AddNewMap(); }