public void Show()
        {
            if (ComponentShelf == null)
            {
                try
                {
                    IDesktopWindow desktopWindow = this.Context.DesktopWindow;

                    IShelf shelf = ThumbnailComponent.Launch(desktopWindow);
                    shelf.Closed += delegate
                    {
                        _shelves.Remove(desktopWindow);
                    };

                    _shelves[this.Context.DesktopWindow] = shelf;
                }
                catch (Exception e)
                {
                    ExceptionHandler.Report(e, this.Context.DesktopWindow);
                }
            }
            else
            {
                ComponentShelf.Show();
            }
        }
示例#2
0
        internal static IShelf Launch(IDesktopWindow desktopWindow)
        {
            var component = new ThumbnailComponent(desktopWindow);

            //
            ClearCanvas.ImageViewer.Thumbnails.Configuration.ThumbnailsSettings setting = ClearCanvas.ImageViewer.Thumbnails.Configuration.ThumbnailsSettings.Default;
            ShelfDisplayHint hint;

            if (setting.position == true)
            {
                hint = ShelfDisplayHint.DockBottom;
            }
            else
            {
                hint = ShelfDisplayHint.DockLeft;
            }

            var shelf = LaunchAsShelf(
                desktopWindow,
                component,
                SR.TitleThumbnails,
                //"Thumbnails",
                //ShelfDisplayHint.DockTop);
                "ËõÂÔͼ",
                hint);

            return(shelf);
        }
        internal static IShelf Launch(IDesktopWindow desktopWindow)
        {
            var component = new ThumbnailComponent(desktopWindow);
            var shelf     = LaunchAsShelf(
                desktopWindow,
                component,
                SR.TitleThumbnails,
                "Thumbnails",
                ShelfDisplayHint.DockTop | ShelfDisplayHint.DockAutoHide);

            return(shelf);
        }
 public ThumbnailTreeItemBinding(ThumbnailComponent owner, string primaryStudyInstanceUid)
 {
     _owner = owner;
     _primaryStudyInstanceUid = primaryStudyInstanceUid;
 }