public ExternalPractitionerMergePropertiesComponentControl(ExternalPractitionerMergePropertiesComponent component)
			:base(component)
		{
			_component = component;
			InitializeComponent();

			_instruction.DataBindings.Add("Text", _component, "Instruction", true, DataSourceUpdateMode.OnPropertyChanged);

			_name.DataSource = _component.NameChoices;
			_name.DataBindings.Add("Value", _component, "Name", true, DataSourceUpdateMode.OnPropertyChanged);
			_name.DataBindings.Add("Enabled", _component, "NameEnabled", true, DataSourceUpdateMode.OnPropertyChanged);
			_name.Format += delegate(object sender, ListControlConvertEventArgs e) { e.Value = _component.FormatName(e.ListItem); };

			_licenseNumber.DataSource = _component.LicenseNumberChoices;
			_licenseNumber.DataBindings.Add("Value", _component, "LicenseNumber", true, DataSourceUpdateMode.OnPropertyChanged);
			_licenseNumber.DataBindings.Add("Enabled", _component, "LicenseNumberEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

			_billingNumber.DataSource = _component.BillingNumberChoices;
			_billingNumber.DataBindings.Add("Value", _component, "BillingNumber", true, DataSourceUpdateMode.OnPropertyChanged);
			_billingNumber.DataBindings.Add("Enabled", _component, "BillingNumberEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

			_extendedProperties.Items.AddRange(_component.ExtendedPropertyChoices);

			_component.AllPropertiesChanged += OnAllPropertiesChanged;
			_component.SaveRequested += OnSaveRequested;
		}
        public ExternalPractitionerMergePropertiesComponentControl(ExternalPractitionerMergePropertiesComponent component)
            : base(component)
        {
            _component = component;
            InitializeComponent();

            _instruction.DataBindings.Add("Text", _component, "Instruction", true, DataSourceUpdateMode.OnPropertyChanged);

            _name.DataSource = _component.NameChoices;
            _name.DataBindings.Add("Value", _component, "Name", true, DataSourceUpdateMode.OnPropertyChanged);
            _name.DataBindings.Add("Enabled", _component, "NameEnabled", true, DataSourceUpdateMode.OnPropertyChanged);
            _name.Format += delegate(object sender, ListControlConvertEventArgs e) { e.Value = _component.FormatName(e.ListItem); };

            _licenseNumber.DataSource = _component.LicenseNumberChoices;
            _licenseNumber.DataBindings.Add("Value", _component, "LicenseNumber", true, DataSourceUpdateMode.OnPropertyChanged);
            _licenseNumber.DataBindings.Add("Enabled", _component, "LicenseNumberEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

            _billingNumber.DataSource = _component.BillingNumberChoices;
            _billingNumber.DataBindings.Add("Value", _component, "BillingNumber", true, DataSourceUpdateMode.OnPropertyChanged);
            _billingNumber.DataBindings.Add("Enabled", _component, "BillingNumberEnabled", true, DataSourceUpdateMode.OnPropertyChanged);

            _extendedProperties.Items.AddRange(_component.ExtendedPropertyChoices);

            _component.AllPropertiesChanged += OnAllPropertiesChanged;
            _component.SaveRequested        += OnSaveRequested;
        }
 /// <summary>
 /// Called by the host to assign this view to a component.
 /// </summary>
 public void SetComponent(IApplicationComponent component)
 {
     _component = (ExternalPractitionerMergePropertiesComponent)component;
 }
 /// <summary>
 /// Called by the host to assign this view to a component.
 /// </summary>
 public void SetComponent(IApplicationComponent component)
 {
     _component = (ExternalPractitionerMergePropertiesComponent)component;
 }