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