private void ConfigureLocalMediaCreation( ) { if (WorkstationUIFactory.Instance.IsViewRegistered <IMediaBurningManagerView <ILocalMediaInformationView> > ( )) { IMediaBurningManagerView <ILocalMediaInformationView> localMediaBurningManager; localMediaBurningManager = WorkstationUIFactory.Instance.GetWorkstationView <IMediaBurningManagerView <ILocalMediaInformationView> > ( ); if (null != __SearchStudies) { __SearchStudies.AddSeriesToLocalMediaBurning += new EventHandler <ProcessSeriesEventArgs> (__SearchStudies_AddSeriesToLocalMediaBurning); } ICommand displayMediaBurningView; if (localMediaBurningManager is MediaBurningManagerView) { MediaBurningManagerView mediaManager = (MediaBurningManagerView)localMediaBurningManager; displayMediaBurningView = new ShowMediaManagerCommand(View.DisplayContainer, mediaManager, MediaViewType.Local); } else if (localMediaBurningManager is Form) { displayMediaBurningView = new ShowModelessDialogCommand(View.DisplayContainer, (Form)localMediaBurningManager); } else { return; } if (!__FeaturesCommand.ContainsKey(UIElementKeys.MediaBurningManagerView)) { __FeaturesCommand.Add(UIElementKeys.MediaBurningManagerView, displayMediaBurningView); } LocalMediaInformationPresenter presenter = new LocalMediaInformationPresenter( ); __LocalMediaCreationController = new MediaBurningManagerController <ILocalMediaInformationView> (__WorkstationViewer.ViewerContainer, localMediaBurningManager, __LoadingDataSetState, presenter, displayMediaBurningView); } }
private void ConfigureMediaCreation( ) { if (WorkstationUIFactory.Instance.IsViewRegistered <IMediaBurningManagerView <IPacsMediaInformationView> > ( )) { IMediaBurningManagerView <IPacsMediaInformationView> pacsBurningView; pacsBurningView = WorkstationUIFactory.Instance.GetWorkstationView <IMediaBurningManagerView <IPacsMediaInformationView> > ( ); if (null != __SearchStudies && ConfigurationData.SupportDicomCommunication) { __SearchStudies.AddSeriesToMediaBurning += new EventHandler <ProcessSeriesEventArgs> (__SearchStudies_AddSeriesToMediaBurning); } ICommand displayMediaBurningView; if (pacsBurningView is MediaBurningManagerView) { MediaBurningManagerView mediaManager = (MediaBurningManagerView)pacsBurningView; displayMediaBurningView = new ShowMediaManagerCommand(View.DisplayContainer, mediaManager, MediaViewType.Pacs); } else if (pacsBurningView is Form) { displayMediaBurningView = new ShowModelessDialogCommand(View.DisplayContainer, (Form)pacsBurningView); } else { return; } __FeaturesCommand.Add(UIElementKeys.MediaBurningManagerView, displayMediaBurningView); MediaInformationPresenter <IPacsMediaInformationView> presenter = new PacsMediaInformationPresenter( ); __MediaCreationController = new MediaBurningManagerController <IPacsMediaInformationView> (__WorkstationViewer.ViewerContainer, pacsBurningView, __LoadingDataSetState, presenter, displayMediaBurningView); } }