private void SetImage(int startImageIndex, int tileIndex) { PrintViewTile tile = this.Tiles[tileIndex] as PrintViewTile; // If there's an image, put it in a tile if (startImageIndex + tileIndex < _displaySet.PresentationImages.Count) { tile.PresentationImage = this.DisplaySet.PresentationImages[startImageIndex + tileIndex]; } // If there are no images left (the case when there are fewer images than tiles) // then just set the tile to blank else { tile.PresentationImage = null; tile.Deselect(); } }
internal void Deselect() { if (this.Selected) { //Platform.CheckMemberIsSet(this.DisplaySet, "ImageBox.DisplaySet"); this.Selected = false; if (_displaySet != null) { _displaySet.Selected = false; } if (this.SelectedTile != null) { _selectedTile.Deselect(); _selectedTile = null; } } }