/*
         * [CommandHandler(CommandNames.histogram)]
         * public void HistogramClickHandler(object sender, EventArgs e)
         * {
         *  ImageInfoView mov = this.WorkItem.SmartParts.AddNew<ImageInfoView>();
         *  SmartPartInfo spi =
         *       new SmartPartInfo("Histogram", "MyOwnDescription");
         *  this.WorkItem.Workspaces[WorkspaceNames.TabWorkspace].Show(mov, spi);
         * }*/

        private void AddTagToList(ExifTag tag, ImageInfoView mov)
        {
            ListViewItem item = mov.listExif.Items.Add(tag.Id.ToString());

            item.SubItems.Add(tag.FieldName);
            item.SubItems.Add(tag.Description);
            item.SubItems.Add(tag.Value);
        }
        public void ViewExifClickHandler(object sender, EventArgs e)
        {
            if (image != null)
            {
                ImageInfos    newIInfo = new ImageInfos(image);
                ImageInfoView mov      = this.WorkItem.SmartParts.AddNew <ImageInfoView>();
                SmartPartInfo spi      =
                    new SmartPartInfo("Exif-Info", "MyOwnDescription");

                _exif = new ExifTagCollection(path);
                foreach (ExifTag tag in _exif)
                {
                    AddTagToList(tag, mov);
                }

                this.WorkItem.Workspaces[WorkspaceNames.TabWorkspace].Show(mov, spi);
            }
        }