public void removeEvents(IPositionEvents ievents) { EventPlacePiece -= new placePiece(ievents.placePiece); EventSetColor -= new setColor(ievents.setColor); EventSetCastling -= new setCastling(ievents.setCastling); EventFinished += new finished(ievents.finished); }
public void removeEvents(IGameParserEvents ievents) { EventNewGame -= new newGame(ievents.newGame); EventEnterVariation -= new enterVariation(ievents.enterVariation); EventExitVariation -= new exitVariation(ievents.exitVariation); EventFinished -= new finished(ievents.finished); EventTagParsed -= new tagParsed(ievents.tagParsed); EventNagParsed -= new nagParsed(ievents.nagParsed); EventMoveParsed -= new moveParsed(ievents.moveParsed); EventCommentParsed += new commentParsed(ievents.commentParsed); }
/// <summary> /// Remove a specific listner from the events fired by the parsing /// of the PGN data. /// </summary> /// <param name="ievents"></param> public void RemoveEvents(IPGNReaderEvents ievents) { EventNewGame -= new newGame(ievents.NewGame); EventExitHeader += new exitHeader(ievents.ExitHeader); EventEnterVariation -= new enterVariation(ievents.EnterVariation); EventExitVariation -= new exitVariation(ievents.ExitVariation); EventStarting += new starting(ievents.Starting); EventFinished -= new finished(ievents.Finished); EventTagParsed -= new tagParsed(ievents.TagParsed); EventNagParsed -= new nagParsed(ievents.NagParsed); EventMoveParsed -= new moveParsed(ievents.StepParsed); EventCommentParsed -= new commentParsed(ievents.CommentParsed); EventendMarkerParsed -= new endMarkerParsed(ievents.EndMarker); }