예제 #1
0
 protected override void OnImageFileClosed(EventArgs e)
 {
     base.OnImageFileClosed(e);
     this.slideDataProvider?.Dispose();
     this.slideDataProvider = null;
     this.heatMapDisplay.Reset();
 }
예제 #2
0
        protected override void OnImageFileOpened(EventArgs e)
        {
            base.OnImageFileOpened(e);
            var slide = this.ImageFile as IWholeSlideImageFile;

            if (null == slide)
            {
                return;
            }
            this.slideDataProvider?.Dispose();
            this.slideDataProvider = new SlideDataProvider(slide);
            foreach (var heatMap in this.slideDataProvider.HeatMapDescriptions)
            {
                this.heatMapDisplay.AddImage(heatMap.Name, heatMap.FileName);
            }
        }