private void unitsB_Click(object sender, EventArgs e) { if (Current.map == null) { MessageBox.Show("Load a map first"); return; } if (unitsForm == null) { unitsForm = new UnitsForm(); unitsForm.Owner = this; } unitsForm.Visible = !unitsForm.Visible; }