Ejemplo n.º 1
0
 public static void Process(this IEnumerable<IPixelViewerCommand> commands, IPixelViewer viewer)
  {
      foreach (var command in commands)
      {
          command.Update(viewer);
      }
  }
Ejemplo n.º 2
0
        public override void Update(IPixelViewer viewer)
        {
            var column = viewer.Columns.ElementAt(this.ColumnIndex);

            var newPixels = CreateUpdatedPixels(column, this.ShiftPixelsDown);

            viewer.Update(newPixels.ToArray());
        }
Ejemplo n.º 3
0
        public override void Update(IPixelViewer viewer)
        {
            var row = viewer.Rows.ElementAt(this.RowIndex);

            var newPixels = CreateUpdatedPixels(row, this.ShiftPixelsRight);

            viewer.Update(newPixels.ToArray());
        }
Ejemplo n.º 4
0
 public void Update(IPixelViewer viewer)
 {            
 }
        public void Update(IPixelViewer viewer)
        {
            var pixels = CreatePixels();

            viewer.Update(pixels);
        }
Ejemplo n.º 6
0
 public abstract void Update(IPixelViewer viewer);
 public RowBasedPixelViewerDisplay(IPixelViewer viewer, Action <string> output)
 {
     this.viewer = viewer;
     this.output = output;
 }