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

            if (_component.HasWarning)
            {
                _warning.Text    = _component.WarningMessage;
                _warning.Visible = true;
            }

            _familyName.DataBindings.Add("Value", _component, "FamilyName", true, DataSourceUpdateMode.OnPropertyChanged);
            _givenName.DataBindings.Add("Value", _component, "GivenName", true, DataSourceUpdateMode.OnPropertyChanged);
            _middleName.DataBindings.Add("Value", _component, "MiddleName", true, DataSourceUpdateMode.OnPropertyChanged);

            _licenseNumber.DataBindings.Add("Value", _component, "LicenseNumber", true, DataSourceUpdateMode.OnPropertyChanged);
            _billingNumber.DataBindings.Add("Value", _component, "BillingNumber", true, DataSourceUpdateMode.OnPropertyChanged);

            _isVerified.DataBindings.Add("Checked", _component, "MarkVerified", true, DataSourceUpdateMode.OnPropertyChanged);
            _lastVerified.Text    = _component.LastVerified;
            _isVerified.Visible   = _component.CanVerify;
            _lastVerified.Visible = _component.CanVerify;
        }
		/// <summary>
		/// Constructor
		/// </summary>
		public ExternalPractitionerDetailsEditorComponentControl(ExternalPractitionerDetailsEditorComponent component)
			: base(component)
		{
			InitializeComponent();
			_component = component;

			if (_component.HasWarning)
			{
				_warning.Text = _component.WarningMessage;
				_warning.Visible = true;
			}

			_familyName.DataBindings.Add("Value", _component, "FamilyName", true, DataSourceUpdateMode.OnPropertyChanged);
			_givenName.DataBindings.Add("Value", _component, "GivenName", true, DataSourceUpdateMode.OnPropertyChanged);
			_middleName.DataBindings.Add("Value", _component, "MiddleName", true, DataSourceUpdateMode.OnPropertyChanged);

			_licenseNumber.DataBindings.Add("Value", _component, "LicenseNumber", true, DataSourceUpdateMode.OnPropertyChanged);
			_billingNumber.DataBindings.Add("Value", _component, "BillingNumber", true, DataSourceUpdateMode.OnPropertyChanged);

			_isVerified.DataBindings.Add("Checked", _component, "MarkVerified", true, DataSourceUpdateMode.OnPropertyChanged);
			_lastVerified.Text = _component.LastVerified;
			_isVerified.Visible= _component.CanVerify;
			_lastVerified.Visible = _component.CanVerify;
		}
 public void SetComponent(IApplicationComponent component)
 {
     _component = (ExternalPractitionerDetailsEditorComponent)component;
 }
 public void SetComponent(IApplicationComponent component)
 {
     _component = (ExternalPractitionerDetailsEditorComponent)component;
 }