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

            _overviewLayoutPanel.RowStyles[0].Height = _component.BannerHeight;

            var orderSummary = (Control)_component.BannerComponentHost.ComponentView.GuiElement;

            orderSummary.Dock = DockStyle.Fill;
            _orderSummaryPanel.Controls.Add(orderSummary);

            var protocolEditor = (Control)_component.ProtocolEditorComponentHost.ComponentView.GuiElement;

            protocolEditor.Dock = DockStyle.Fill;
            _protocolEditorPanel.Controls.Add(protocolEditor);

            var orderNotes = (Control)_component.OrderNotesComponentHost.ComponentView.GuiElement;

            orderNotes.Dock = DockStyle.Fill;
            _orderNotesPanel.Controls.Add(orderNotes);

            var rightHandContent = (Control)_component.RightHandComponentContainerHost.ComponentView.GuiElement;

            rightHandContent.Dock = DockStyle.Fill;
            _rightHandPanel.Controls.Add(rightHandContent);

            _statusText.DataBindings.Add("Text", _component, "StatusText", true, DataSourceUpdateMode.OnPropertyChanged);
            _statusText.DataBindings.Add("Visible", _component, "ShowStatusText", true, DataSourceUpdateMode.OnPropertyChanged);

            _protocolledProcedures.DataBindings.Add("Text", _component, "ProceduresText", true, DataSourceUpdateMode.OnPropertyChanged);

            _protocolNextItem.DataBindings.Add("Checked", _component, "ProtocolNextItem", true, DataSourceUpdateMode.OnPropertyChanged);
            _protocolNextItem.DataBindings.Add("Enabled", _component, "ProtocolNextItemEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

            _btnAccept.DataBindings.Add("Enabled", _component, "AcceptEnabled", true, DataSourceUpdateMode.OnPropertyChanged);
            _btnAccept.DataBindings.Add("Visible", _component, "AcceptVisible", true, DataSourceUpdateMode.OnPropertyChanged);

            _btnSubmitForApproval.DataBindings.Add("Enabled", _component, "SubmitForApprovalEnabled", true, DataSourceUpdateMode.OnPropertyChanged);
            _btnSubmitForApproval.Visible = _component.SubmitForApprovalVisible;

            _btnReject.DataBindings.Add("Enabled", _component, "RejectEnabled", true, DataSourceUpdateMode.OnPropertyChanged);
            _btnSave.DataBindings.Add("Enabled", _component, "SaveEnabled", true, DataSourceUpdateMode.OnPropertyChanged);
            _btnSkip.DataBindings.Add("Enabled", _component, "SkipEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

            _component.PropertyChanged += _component_PropertyChanged;
        }
		/// <summary>
		/// Constructor
		/// </summary>
		public ProtocollingComponentControl(ProtocollingComponent component)
			: base(component)
		{
			InitializeComponent();
			_component = component;

			_overviewLayoutPanel.RowStyles[0].Height = _component.BannerHeight;

			var orderSummary = (Control)_component.BannerComponentHost.ComponentView.GuiElement;
			orderSummary.Dock = DockStyle.Fill;
			_orderSummaryPanel.Controls.Add(orderSummary);

			var protocolEditor = (Control)_component.ProtocolEditorComponentHost.ComponentView.GuiElement;
			protocolEditor.Dock = DockStyle.Fill;
			_protocolEditorPanel.Controls.Add(protocolEditor);

			var orderNotes = (Control)_component.OrderNotesComponentHost.ComponentView.GuiElement;
			orderNotes.Dock = DockStyle.Fill;
			_orderNotesPanel.Controls.Add(orderNotes);

			var rightHandContent = (Control)_component.RightHandComponentContainerHost.ComponentView.GuiElement;
			rightHandContent.Dock = DockStyle.Fill;
			_rightHandPanel.Controls.Add(rightHandContent);

			_statusText.DataBindings.Add("Text", _component, "StatusText", true, DataSourceUpdateMode.OnPropertyChanged);
			_statusText.DataBindings.Add("Visible", _component, "ShowStatusText", true, DataSourceUpdateMode.OnPropertyChanged);

			_protocolledProcedures.DataBindings.Add("Text", _component, "ProceduresText", true, DataSourceUpdateMode.OnPropertyChanged);

			_protocolNextItem.DataBindings.Add("Checked", _component, "ProtocolNextItem", true, DataSourceUpdateMode.OnPropertyChanged);
			_protocolNextItem.DataBindings.Add("Enabled", _component, "ProtocolNextItemEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

			_btnAccept.DataBindings.Add("Enabled", _component, "AcceptEnabled", true, DataSourceUpdateMode.OnPropertyChanged);
			_btnAccept.DataBindings.Add("Visible", _component, "AcceptVisible", true, DataSourceUpdateMode.OnPropertyChanged);

			_btnSubmitForApproval.DataBindings.Add("Enabled", _component, "SubmitForApprovalEnabled", true, DataSourceUpdateMode.OnPropertyChanged);
			_btnSubmitForApproval.Visible = _component.SubmitForApprovalVisible;

			_btnReject.DataBindings.Add("Enabled", _component, "RejectEnabled", true, DataSourceUpdateMode.OnPropertyChanged);
			_btnSave.DataBindings.Add("Enabled", _component, "SaveEnabled", true, DataSourceUpdateMode.OnPropertyChanged);
			_btnSkip.DataBindings.Add("Enabled", _component, "SkipEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

			_component.PropertyChanged += _component_PropertyChanged;
		}
 public void SetComponent(IApplicationComponent component)
 {
     _component = (ProtocollingComponent)component;
 }
		public override IApplicationComponent GetComponent()
		{
			_component = new ProtocollingComponent(_item, _mode, _folderName, _worklistRef, _worklistClassName);
			return _component;
		}
 public void SetComponent(IApplicationComponent component)
 {
     _component = (ProtocollingComponent)component;
 }