/// <summary> /// Constructor /// </summary> public ProtocolCodeEditorComponentControl(ProtocolCodeEditorComponent component) : base(component) { InitializeComponent(); _component = component; _name.DataBindings.Add("Value", _component, "Name", true, DataSourceUpdateMode.OnPropertyChanged); _description.DataBindings.Add("Value", _component, "Description", true, DataSourceUpdateMode.OnPropertyChanged); _acceptButton.DataBindings.Add("Enabled", _component, "AcceptEnabled", true, DataSourceUpdateMode.OnPropertyChanged); }
public void SetComponent(IApplicationComponent component) { _component = (ProtocolCodeEditorComponent)component; }