private void head_Click(object sender, EventArgs e) { if (atack.Text == "нападает") { AtackHeadClick?.Invoke(this, EventArgs.Empty); } else { BlockHeadClick?.Invoke(this, EventArgs.Empty); } }
// Events private void btnAtackHead_Click(object sender, EventArgs e) { AtackHeadClick?.Invoke(this, EventArgs.Empty); EnableDisableAtackDef(false); }