public void SetImageBoxes(IEnumerable <ImageBox> imageBoxes) { DestroyImageBoxViews(); _imageBoxViews = new List <ImageBoxView>(); foreach (ImageBox box in imageBoxes) { var boxView = new ImageBoxView(box, _eventMediator); StudyViewCanvas.Children.Add(boxView); _imageBoxViews.Add(boxView); } SetImageBoxesParentSize(); }
public void SetImageBoxes(IEnumerable<ImageBox> imageBoxes) { DestroyImageBoxViews(); _imageBoxViews = new List<ImageBoxView>(); foreach (ImageBox box in imageBoxes) { var boxView = new ImageBoxView(box,_eventMediator); StudyViewCanvas.Children.Add(boxView); _imageBoxViews.Add(boxView); } SetImageBoxesParentSize(); }