示例#1
0
 public void DisplayWinner(IWinner winner)
 {
     if (winner != null)
     {
         var currentBitPatterns = _characterToBitMapConverter.GetBitPattern(winner.WinningAttendee.Name, "*** wins ***", winner.AwardedSwag.Company, winner.AwardedSwag.Thing);
         _matrixTransformer = MatrixTransformer.Create <WinnerTransformer>(currentBitPatterns);
         StartTransform(100);
     }
     else
     {
         _matrixTransformer = MatrixTransformer.Create <GameOverTransformer>();
         StartTransform(1000);
     }
 }
示例#2
0
 private void Form_Load(object sender, EventArgs e)
 {
     DisplayCurrentBitPatterns(new BitMatrix());
     _matrixTransformer = MatrixTransformer.Create <StartupTransformer>();
     StartTransform(200);
 }