private void toolStripButton7_Click_1(object sender, EventArgs e) { var form = new LightingSettings(); form.Map = mapPanel1.Map; form.ShowDialog(); }