protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider) { Image data = (Image)objectProvider.GetObject(); if (data == null) { return; } using (Form displayForm = new ImageVisualizerForm(data, ImageHelper.AdjustSize(data.Width))) { windowService.ShowDialog(displayForm); } }
protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider) { ImageListStreamer data = objectProvider.GetObject() as ImageListStreamer; ImageList list; if (data == null) { return; } else { list = new ImageList(); list.ImageStream = data; } using (Form displayForm = new ImageVisualizerForm(list.Images, list.ImageSize, ImageHelper.AdjustSize(list.ImageSize.Width))) { windowService.ShowDialog(displayForm); } }