Ejemplo n.º 1
0
        internal static ILayoutManager Create(LayoutManagerCreationParameters creationParameters)
        {
            ILayoutManager layoutManager = null;

            if (creationParameters == LayoutManagerCreationParameters.Extended)
            {
                try
                {
                    layoutManager = (ILayoutManager) new LayoutManagerExtensionPoint().CreateExtension();
                }
                catch (NotSupportedException e)
                {
                    Platform.Log(LogLevel.Debug, e);
                }
            }

            return(layoutManager ?? new LayoutManager());
        }
Ejemplo n.º 2
0
 /// <summary>
 /// <see cref="ImageViewerComponent"/>
 /// taking a <see cref="LayoutManagerCreationParameters"/> to determine
 /// how the <see cref="LayoutManager"/> should be created, as well as an
 /// <see cref="IPriorStudyFinder"/>.
 /// </summary>
 /// <remarks>
 /// <para>
 ///	If <paramref name="creationParameters"/> is <see cref="LayoutManagerCreationParameters.Extended"/>,
 /// then the <see cref="LayoutManagerExtensionPoint"/> is used to create the <see cref="LayoutManager"/>.  If
 /// no extension exists, a simple layout manager is used.
 /// </para>
 /// <para>If <paramref name="priorStudyFinder"/> is null or <see cref="PriorStudyFinder.Null"/>, then the
 /// <see cref="ImageViewerComponent"/> will not automatically search for priors.
 /// </para>
 /// </remarks>
 public ImageViewerComponent(LayoutManagerCreationParameters creationParameters, IPriorStudyFinder priorStudyFinder)
     : this(ImageViewer.LayoutManager.Create(creationParameters), priorStudyFinder)
 {
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Instantiates a new instance of <see cref="ImageViewerComponent"/>
 /// taking a <see cref="LayoutManagerCreationParameters"/> to determine
 /// how the <see cref="LayoutManager"/> should be created.
 /// </summary>
 /// <remarks>
 ///	If <paramref name="creationParameters"/> is <see cref="LayoutManagerCreationParameters.Extended"/>,
 /// then the <see cref="LayoutManagerExtensionPoint"/> is used to create the <see cref="LayoutManager"/>.  If
 /// no extension exists, a simple layout manager is used.
 /// </remarks>
 public ImageViewerComponent(LayoutManagerCreationParameters creationParameters)
     : this(ImageViewer.LayoutManager.Create(creationParameters))
 {
 }