public override void Start()
		{
			this.Pages.Add(new NavigatorPage("NodeContactPoint", _detailsEditor = new ExternalPractitionerContactPointDetailsEditorComponent(_contactPointDetail, _resultCommunicationModeChoices, _informationAuthorityChoices)));
			this.Pages.Add(new NavigatorPage("NodeContactPoint/NodeAddresses", _addressesSummary = new AddressesSummaryComponent(_addressTypeChoices)));
			this.Pages.Add(new NavigatorPage("NodeContactPoint/NodePhoneNumbers", _phoneNumbersSummary = new PhoneNumbersSummaryComponent(_phoneTypeChoices)));
			this.Pages.Add(new NavigatorPage("NodeContactPoint/NodeEmailAddresses", _emailAddressesSummary = new EmailAddressesSummaryComponent()));

			_addressesSummary.SetModifiedOnListChange = true;
			_phoneNumbersSummary.SetModifiedOnListChange = true;
			_emailAddressesSummary.SetModifiedOnListChange = true;

			this.ValidationStrategy = new AllComponentsValidationStrategy();

			_addressesSummary.Subject = _contactPointDetail.Addresses;
			_phoneNumbersSummary.Subject = _contactPointDetail.TelephoneNumbers;
			_emailAddressesSummary.Subject = _contactPointDetail.EmailAddresses;

			base.Start();
		}
        /// <summary>
        /// Constructor
        /// </summary>
        public ExternalPractitionerContactPointDetailsEditorComponentControl(ExternalPractitionerContactPointDetailsEditorComponent component)
            : base(component)
        {
            InitializeComponent();

            _component = component;
            _component.PropertyChanged += _component_PropertyChanged;

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

            _name.DataBindings.Add("Value", _component, "ContactPointName", true, DataSourceUpdateMode.OnPropertyChanged);
            _description.DataBindings.Add("Value", _component, "ContactPointDescription", true, DataSourceUpdateMode.OnPropertyChanged);
            _isDefaultContactPoint.DataBindings.Add("Checked", _component, "IsDefaultContactPoint", true, DataSourceUpdateMode.OnPropertyChanged);
            _resultCommunicationMode.DataBindings.Add("Value", _component, "SelectedResultCommunicationMode", true, DataSourceUpdateMode.OnPropertyChanged);
            _resultCommunicationMode.DataSource = _component.ResultCommunicationModeChoices;
            _informationAuthority.DataBindings.Add("Value", _component, "SelectedInformationAuthority", true, DataSourceUpdateMode.OnPropertyChanged);
            _informationAuthority.DataSource = _component.InformationAuthorityChoices;
        }
		/// <summary>
		/// Constructor
		/// </summary>
		public ExternalPractitionerContactPointDetailsEditorComponentControl(ExternalPractitionerContactPointDetailsEditorComponent component)
			: base(component)
		{
			InitializeComponent();

			_component = component;
			_component.PropertyChanged += _component_PropertyChanged;

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

			_name.DataBindings.Add("Value", _component, "ContactPointName", true, DataSourceUpdateMode.OnPropertyChanged);
			_description.DataBindings.Add("Value", _component, "ContactPointDescription", true, DataSourceUpdateMode.OnPropertyChanged);
			_isDefaultContactPoint.DataBindings.Add("Checked", _component, "IsDefaultContactPoint", true, DataSourceUpdateMode.OnPropertyChanged);
			_resultCommunicationMode.DataBindings.Add("Value", _component, "SelectedResultCommunicationMode", true, DataSourceUpdateMode.OnPropertyChanged);
			_resultCommunicationMode.DataSource = _component.ResultCommunicationModeChoices;
			_informationAuthority.DataBindings.Add("Value", _component, "SelectedInformationAuthority", true, DataSourceUpdateMode.OnPropertyChanged);
			_informationAuthority.DataSource = _component.InformationAuthorityChoices;
		}
 public void SetComponent(IApplicationComponent component)
 {
     _component = (ExternalPractitionerContactPointDetailsEditorComponent)component;
 }
 public void SetComponent(IApplicationComponent component)
 {
     _component = (ExternalPractitionerContactPointDetailsEditorComponent)component;
 }