public PhysicalWorkspaceMemento( ImageBoxCollection imageBoxes, List <object> imageBoxMementos, int rows, int columns) { Platform.CheckForNullReference(imageBoxes, "imageBoxes"); Platform.CheckForNullReference(imageBoxMementos, "imageBoxMementos"); _imageBoxes = imageBoxes; _imageBoxMementos = imageBoxMementos; _rows = rows; _columns = columns; }
private void DisposeImageBoxes() { if (this.ImageBoxes == null) { return; } SetLocked(false); foreach (ImageBox imageBox in this.ImageBoxes) { imageBox.Dispose(); } _imageBoxes = null; }