public AttachDocumentComponentControl(AttachDocumentComponent component) : base(component) { InitializeComponent(); _component = component; _file.DataBindings.Add("Value", _component, "FilePath", true, DataSourceUpdateMode.OnPropertyChanged); _category.DataSource = _component.CategoryChoices; _category.DataBindings.Add("Value", _component, "Category", true, DataSourceUpdateMode.OnPropertyChanged); }
public AttachDocumentComponentControl(AttachDocumentComponent component) :base(component) { InitializeComponent(); _component = component; _file.DataBindings.Add("Value", _component, "FilePath", true, DataSourceUpdateMode.OnPropertyChanged); _category.DataSource = _component.CategoryChoices; _category.DataBindings.Add("Value", _component, "Category", true, DataSourceUpdateMode.OnPropertyChanged); }
public void SetComponent(IApplicationComponent component) { _component = (AttachDocumentComponent)component; }