/// <summary>
		/// Constructor
		/// </summary>
		public BiographyDemographicComponentControl(BiographyDemographicComponent component)
			:base(component)
		{
			InitializeComponent();
			_component = component;

			_selectedProfile.DataSource = _component.ProfileChoices;
			_selectedProfile.DataBindings.Add("Value", _component, "SelectedProfile", true, DataSourceUpdateMode.OnPropertyChanged);
			_selectedProfile.Format += delegate(object sender, ListControlConvertEventArgs e) { e.Value = _component.FormatPatientProfile(e.ListItem); };

			var profileViewer = (Control)_component.ProfileViewComponentHost.ComponentView.GuiElement;
			profileViewer.Dock = DockStyle.Fill;
			this._demoHostPanel.Controls.Add(profileViewer);

			_component.AllPropertiesChanged += AllPropertiesChangedEventHandler;
		}
Exemple #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        public BiographyDemographicComponentControl(BiographyDemographicComponent component)
            : base(component)
        {
            InitializeComponent();
            _component = component;

            _selectedProfile.DataSource = _component.ProfileChoices;
            _selectedProfile.DataBindings.Add("Value", _component, "SelectedProfile", true, DataSourceUpdateMode.OnPropertyChanged);
            _selectedProfile.Format += delegate(object sender, ListControlConvertEventArgs e) { e.Value = _component.FormatPatientProfile(e.ListItem); };

            var profileViewer = (Control)_component.ProfileViewComponentHost.ComponentView.GuiElement;

            profileViewer.Dock = DockStyle.Fill;
            this._demoHostPanel.Controls.Add(profileViewer);

            _component.AllPropertiesChanged += AllPropertiesChangedEventHandler;
        }
 public void SetComponent(IApplicationComponent component)
 {
     _component = (BiographyDemographicComponent)component;
 }
 public void SetComponent(IApplicationComponent component)
 {
     _component = (BiographyDemographicComponent)component;
 }