Exemple #1
0
		public void Show()
		{
			UpdateEnabled();

			if (!Enabled)
				return;

			try
			{
				var component = new SeriesDetailsComponent(Context.SelectedStudy);
				ApplicationComponent.LaunchAsDialog(Context.DesktopWindow, component, SR.TitleSeriesDetails);
			}
			catch(Exception e)
			{
				ExceptionHandler.Report(e, this.Context.DesktopWindow);
			}
		}
        /// <summary>
        /// Constructor.
        /// </summary>
        public SeriesDetailsComponentControl(SeriesDetailsComponent component)
            : base(component)
        {
            _component = component;
            InitializeComponent();

            _patientId.Value        = _component.PatientId;
            _patientsName.Value     = _component.PatientsName;
            _dob.Value              = _component.PatientsBirthDate;
            _accessionNumber.Value  = _component.AccessionNumber;
            _studyDate.Value        = _component.StudyDate;
            _studyDescription.Value = _component.StudyDescription;

            _seriesTable.Table        = _component.SeriesTable;
            _seriesTable.ToolbarModel = _component.ToolbarActionModel;
            _seriesTable.MenuModel    = _component.ContextMenuActionModel;

            base.AcceptButton = _close;
            base.CancelButton = _close;
        }
        /// <summary>
        /// Constructor.
        /// </summary>
		public SeriesDetailsComponentControl(SeriesDetailsComponent component)
            :base(component)
        {
			_component = component;
            InitializeComponent();

        	_patientId.Value = _component.PatientId;
			_patientsName.Value = _component.PatientsName;
			_dob.Value = _component.PatientsBirthDate;
			_accessionNumber.Value = _component.AccessionNumber;
			_studyDate.Value = _component.StudyDate;
			_studyDescription.Value = _component.StudyDescription;

        	_seriesTable.Table = _component.SeriesTable;
        	_seriesTable.ToolbarModel = _component.ToolbarActionModel;
        	_seriesTable.MenuModel = _component.ContextMenuActionModel;

        	base.AcceptButton = _close;
			base.CancelButton = _close;
		}
 /// <summary>
 /// Called by the host to assign this view to a component.
 /// </summary>
 public void SetComponent(IApplicationComponent component)
 {
     _component = (SeriesDetailsComponent)component;
 }
        /// <summary>
        /// Called by the host to assign this view to a component.
        /// </summary>
        public void SetComponent(IApplicationComponent component)
        {
			_component = (SeriesDetailsComponent)component;
        }