Ejemplo n.º 1
0
 public virtual void Link(BridgeEventBusClient other)
 {
     Log.Trace(5, "BridgeEventBus.Link {0} {1}", this.eventBusName, other.Name);
     if (other == null)
     {
         throw new ArgumentNullException("other");
     }
     this.OnTournamentStarted += new TournamentStartedHandler(other.HandleTournamentStarted);
     this.OnRoundStarted      += new RoundStartedHandler(other.HandleRoundStarted);
     this.OnBoardStarted      += new BoardStartedHandler(other.HandleBoardStarted);
     this.OnBidNeeded         += new BidNeededHandler(other.HandleBidNeeded);
     this.OnBidDone           += new BidDoneHandler(other.HandleBidDone);
     this.OnExplanationNeeded += new BidDoneHandler(other.HandleExplanationNeeded);
     this.OnExplanationDone   += new BidDoneHandler(other.HandleExplanationDone);
     this.OnAuctionFinished   += new AuctionFinishedHandler(other.HandleAuctionFinished);
     this.OnCardNeeded        += new CardNeededHandler(other.HandleCardNeeded);
     this.OnCardPlayed        += new CardPlayedHandler(other.HandleCardPlayed);
     this.OnTrickFinished     += new TrickFinishedHandler(other.HandleTrickFinished);
     this.OnPlayFinished      += new PlayFinishedHandler2(other.HandlePlayFinished);
     this.OnTimeUsed          += new TimeUsedHandler(other.HandleTimeUsed);
     this.OnTournamentStopped += new TournamentStoppedHandler(other.HandleTournamentStopped);
     this.OnCardPosition      += new CardPositionHandler(other.HandleCardPosition);
     this.OnCardDealingEnded  += new CardDealingEndedHandler(other.HandleCardDealingEnded);
     this.OnNeedDummiesCards  += new ShowDummyHandler(other.HandleNeedDummiesCards);
     this.OnShowDummy         += new ShowDummyHandler(other.HandleShowDummy);
 }
Ejemplo n.º 2
0
 public virtual void Unlink(BridgeEventBusClient other)
 {
     Log.Trace(5, "BridgeEventBus.Unlink {0} {1}", this.eventBusName, other.Name);
     this.OnTournamentStarted -= new TournamentStartedHandler(other.HandleTournamentStarted);
     this.OnRoundStarted      -= new RoundStartedHandler(other.HandleRoundStarted);
     this.OnBoardStarted      -= new BoardStartedHandler(other.HandleBoardStarted);
     this.OnBidNeeded         -= new BidNeededHandler(other.HandleBidNeeded);
     this.OnBidDone           -= new BidDoneHandler(other.HandleBidDone);
     this.OnExplanationNeeded -= new BidDoneHandler(other.HandleExplanationNeeded);
     this.OnExplanationDone   -= new BidDoneHandler(other.HandleExplanationDone);
     this.OnAuctionFinished   -= new AuctionFinishedHandler(other.HandleAuctionFinished);
     this.OnCardNeeded        -= new CardNeededHandler(other.HandleCardNeeded);
     this.OnCardPlayed        -= new CardPlayedHandler(other.HandleCardPlayed);
     this.OnTrickFinished     -= new TrickFinishedHandler(other.HandleTrickFinished);
     this.OnPlayFinished      -= new PlayFinishedHandler2(other.HandlePlayFinished);
     this.OnTimeUsed          -= new TimeUsedHandler(other.HandleTimeUsed);
     this.OnTournamentStopped -= new TournamentStoppedHandler(other.HandleTournamentStopped);
     this.OnCardPosition      -= new CardPositionHandler(other.HandleCardPosition);
     this.OnCardDealingEnded  -= new CardDealingEndedHandler(other.HandleCardDealingEnded);
     this.OnNeedDummiesCards  -= new ShowDummyHandler(other.HandleNeedDummiesCards);
     this.OnShowDummy         -= new ShowDummyHandler(other.HandleShowDummy);
 }
Ejemplo n.º 3
0
 public override void Unlink(BridgeEventBusClient other)
 {
 }