Esempio n. 1
0
 private void RaisePieceTaken(Square square, ChessPiece pieceTaken)
 {
     var handler = this.PieceTaken;
     if (handler != null) {
         var eventArgs = new PieceTakenEventArgs(square, pieceTaken);
         handler(this, eventArgs);
     }
 }
 public static void SetPieceTakenEventArgs(PieceTakenEventArgs e)
 {
     ScenarioContext.Current[PIECE_TAKEN_EVENTARGS_KEY] = e;
 }