public void removeEvents(IValidationEvents ievents) { EventPromote -= new Promote(ievents.Promotion); EventIsMated -= new IsMated(ievents.KingIsMated); EventIsStaleMated -= new IsStaleMated(ievents.KingIsStaleMated); EventIsInCheck -= new IsInCheck(ievents.KingIsInCheck); EventIsFree -= new IsFree(ievents.KingIsFree); EventMovePiece -= new movePiece(ievents.updateBoard); }
public void addEvents(IValidationEvents ievents) { EventPromote += new Promote(ievents.Promotion); EventIsMated += new IsMated(ievents.KingIsMated); EventIsStaleMated += new IsStaleMated(ievents.KingIsStaleMated); EventIsInCheck += new IsInCheck(ievents.KingIsInCheck); EventIsFree += new IsFree(ievents.KingIsFree); EventIsDone += new IsDone(ievents.finishedMove); EventMovePiece += new movePiece(ievents.updateBoard); }