private void changeLocationToolStripMenuItem_Click(object sender, EventArgs e) { SetLocationForm setLoc = new SetLocationForm(); setLoc.LocationSomethingElse = location; setLoc.Longitude = localLongitude; if (setLoc.ShowDialog() == System.Windows.Forms.DialogResult.OK) { setLocation(setLoc.Longitude, setLoc.LocationSomethingElse); } }