/// <summary>
		/// Constructor
		/// </summary>
		public BiographyVisitHistoryComponentControl(BiographyVisitHistoryComponent component)
		{
			InitializeComponent();
			_component = component;

			_visitList.Table = _component.Visits;
			_visitList.DataBindings.Add("Selection", _component, "SelectedVisit", true, DataSourceUpdateMode.OnPropertyChanged);

			Control detailView = (Control)_component.VisitDetailComponentHost.ComponentView.GuiElement;
			detailView.Dock = DockStyle.Fill;
			_detailPanel.Controls.Add(detailView);
		}
Beispiel #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        public BiographyVisitHistoryComponentControl(BiographyVisitHistoryComponent component)
        {
            InitializeComponent();
            _component = component;

            _visitList.Table = _component.Visits;
            _visitList.DataBindings.Add("Selection", _component, "SelectedVisit", true, DataSourceUpdateMode.OnPropertyChanged);

            Control detailView = (Control)_component.VisitDetailComponentHost.ComponentView.GuiElement;

            detailView.Dock = DockStyle.Fill;
            _detailPanel.Controls.Add(detailView);
        }
 /// <summary>
 /// Called by the host to assign this view to a component.
 /// </summary>
 public void SetComponent(IApplicationComponent component)
 {
     _component = (BiographyVisitHistoryComponent)component;
 }
Beispiel #4
0
 /// <summary>
 /// Called by the host to assign this view to a component.
 /// </summary>
 public void SetComponent(IApplicationComponent component)
 {
     _component = (BiographyVisitHistoryComponent)component;
 }