private void a_btn_adddefpos_Click(object sender, EventArgs e) { DefencePostionForm defencePostionForm = new DefencePostionForm(PrimalManager, TypesEnums.UnitSide.Ally); defencePostionForm.Show(); defencePostionForm.FormClosed += (senderr, ee) => { refreshBoxes(); }; }
private void a_btn_edit_defpos_Click(object sender, EventArgs e) { DefPos D = (DefPos)PrimalManager.DefenceBoxA.SelectedItem; if (D == null) { return; } DefencePostionForm defencePostionForm = new DefencePostionForm(PrimalManager, TypesEnums.UnitSide.Ally, D); defencePostionForm.Show(); defencePostionForm.FormClosed += (senderr, ee) => { refreshBoxes(); }; }