public void SetBoardPackage(MonkeyBoardPackage boardPackage) { if (boardPackage != null) { BoardPackage = boardPackage; this.PreviewKeyDown += BoardPackage.RestartKeyBinding; SetupDisplay(); } }
public void ClearBoardPackage() { if (BoardPackage != null) { ClearDisplay(); this.PreviewKeyDown -= BoardPackage.RestartKeyBinding; BoardPackage = null; } }