Esempio n. 1
0
 internal void Draw(ILocatedPixel pixel)
 {
     if (pixel.Column < this.width)
     {
         if (pixel.Row < this.height)
         {
             this.currentBoard[pixel.Row, pixel.Column] = (IPixel)pixel;
         }
         else
         {
             throw new ArgumentOutOfRangeException("pixel", "pixel row was not within the defined display height");
         }
     }
     else
     {
         throw new ArgumentOutOfRangeException("pixel", "pixel column was not within the defined display width");
     }
 }
Esempio n. 2
0
 public void Draw(ILocatedPixel pixel)
 {
     this.dh.Draw(pixel);
 }