Example #1
0
        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();
        }
Example #2
0
        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();
        }