示例#1
0
        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);
        }
示例#2
0
 private void cityForm_Close(object o, FormClosedEventArgs e)
 {
     cf = null;
 }