/// <summary> /// Constructor. /// </summary> public ExternalPractitionerReplaceDisabledContactPointsComponentControl(ExternalPractitionerReplaceDisabledContactPointsComponent component) : base(component) { _component = component; InitializeComponent(); _instruction.DataBindings.Add("Text", _component, "Instruction", true, DataSourceUpdateMode.OnPropertyChanged); _table.Items.AddRange(_component.ReplaceDisabledContactPointsTableItems); _table.DataBindings.Add("Selection", _component, "ValidationPlaceHolder", true, DataSourceUpdateMode.OnPropertyChanged); _component.AllPropertiesChanged += OnAllPropertiesChanged; }
/// <summary> /// Called by the host to assign this view to a component. /// </summary> public void SetComponent(IApplicationComponent component) { _component = (ExternalPractitionerReplaceDisabledContactPointsComponent)component; }