private void miSetRegionSoldiers_Click(object sender, EventArgs e) { if (operateMode == OperateMode.SetRegionProps) { SetRegionPropsForm form = new SetRegionPropsForm(); if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK) { mapPanel.SetRegionSoldiers(form.Soldiers); } } }