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;
        }
Example #2
0
        private void DisposeImageBoxes()
        {
            if (this.ImageBoxes == null)
            {
                return;
            }

            SetLocked(false);

            foreach (ImageBox imageBox in this.ImageBoxes)
            {
                imageBox.Dispose();
            }

            _imageBoxes = null;
        }