/// <summary> /// Constructor /// </summary> public DataImportComponentControl(DataImportComponent component) : base(component) { InitializeComponent(); _component = component; _importer.DataSource = _component.ImportTypeChoices; _importer.DataBindings.Add("Value", _component, "ImportType", true, DataSourceUpdateMode.OnPropertyChanged); _dataFile.DataBindings.Add("Text", _component, "FileName", true, DataSourceUpdateMode.OnPropertyChanged); //_batchSize.DataBindings.Add("Value", _component, "BatchSize", true, DataSourceUpdateMode.OnPropertyChanged); }
public void SetComponent(IApplicationComponent component) { _component = (DataImportComponent)component; }