public PictureCollection(PictureGrid parent, int rows, int columns) { imageArray = new ImageHost[rows, columns]; for (int row = 0; row < rows; row++) { for (int column = 0; column < columns; column++) { imageArray[row, column] = new ImageHost(parent, row, column); } } }
public ImageHost(PictureGrid parent, int row, int column) { this.parent = parent; this.row = row; this.column = column; }