private void cmd_city_Click(object sender, EventArgs e) { if (cf == null) { cf = new CityForm(tm, (int)num_selx.Value, (int)num_sely.Value); cf.FormClosed += cityForm_Close; cf.Show(); } else cf.selTile((int)num_selx.Value, (int)num_sely.Value); }
private void cityForm_Close(object o, FormClosedEventArgs e) { cf = null; }