public AsynchronousPriorStudyLoader(ImageViewerComponent imageViewer, IPriorStudyFinder priorStudyFinder) { _imageViewer = imageViewer; _singleStudyLoaders = new List <SingleStudyLoader>(); _priorStudyFinder = priorStudyFinder ?? PriorStudyFinder.Null; _priorStudyFinder.SetImageViewer(_imageViewer); }
internal ViewerSetupHelper(ILayoutManager layoutManager, IPriorStudyFinder priorStudyFinder) { LayoutManager = layoutManager; PriorStudyFinder = priorStudyFinder; }
public AsynchronousPriorStudyLoader(ImageViewerComponent imageViewer, IPriorStudyFinder priorStudyFinder) { _imageViewer = imageViewer; _singleStudyLoaders = new List<SingleStudyLoader>(); _priorStudyFinder = priorStudyFinder ?? PriorStudyFinder.Null; _priorStudyFinder.SetImageViewer(_imageViewer); }
/// <summary> /// Initializes a new instance of <see cref="ImageViewerComponent"/> /// with the specified <see cref="ILayoutManager"/> and <see cref="IPriorStudyFinder"/>. /// </summary> /// <remarks> /// <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(ILayoutManager layoutManager, IPriorStudyFinder priorStudyFinder) : this(new ViewerSetupHelper(layoutManager, priorStudyFinder)) { }
/// <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) { }