/// <summary>
        /// Constructor.
        /// </summary>
        public WorkflowHistoryComponentControl(WorkflowHistoryComponent component)
            :base(component)
        {
			_component = component;
            InitializeComponent();

        	_procedureTableView.Table = _component.ProcedureTable;
        	_procedureTableView.DataBindings.Add("Selection", _component, "SelectedProcedure", true, DataSourceUpdateMode.OnPropertyChanged);

        	Control c = (Control) _component.ProcedureViewComponentHost.ComponentView.GuiElement;
        	c.Dock = DockStyle.Fill;
			_historyPanel.Controls.Add(c);
        }
        /// <summary>
        /// Constructor.
        /// </summary>
        public WorkflowHistoryComponentControl(WorkflowHistoryComponent component)
            : base(component)
        {
            _component = component;
            InitializeComponent();

            _procedureTableView.Table = _component.ProcedureTable;
            _procedureTableView.DataBindings.Add("Selection", _component, "SelectedProcedure", true, DataSourceUpdateMode.OnPropertyChanged);

            Control c = (Control)_component.ProcedureViewComponentHost.ComponentView.GuiElement;

            c.Dock = DockStyle.Fill;
            _historyPanel.Controls.Add(c);
        }
 /// <summary>
 /// Called by the host to assign this view to a component.
 /// </summary>
 public void SetComponent(IApplicationComponent component)
 {
     _component = (WorkflowHistoryComponent)component;
 }
 /// <summary>
 /// Called by the host to assign this view to a component.
 /// </summary>
 public void SetComponent(IApplicationComponent component)
 {
     _component = (WorkflowHistoryComponent)component;
 }