/// <summary> /// Constructor /// </summary> public MergeComponentBaseControl(MergeComponentBase component) :base(component) { InitializeComponent(); _component = component; _sourceItem.DataSource = _component.SourceItems; _sourceItem.DataBindings.Add("Value", _component, "SelectedDuplicate", true, DataSourceUpdateMode.OnPropertyChanged); _sourceItem.Format += delegate(object sender, ListControlConvertEventArgs e) { e.Value = _component.FormatItem(e.ListItem); }; _targetItem.DataSource = _component.TargetItems; _targetItem.DataBindings.Add("Value", _component, "SelectedOriginal", true, DataSourceUpdateMode.OnPropertyChanged); _targetItem.Format += delegate(object sender, ListControlConvertEventArgs e) { e.Value = _component.FormatItem(e.ListItem); }; }
/// <summary> /// Constructor /// </summary> public MergeComponentBaseControl(MergeComponentBase component) : base(component) { InitializeComponent(); _component = component; _sourceItem.DataSource = _component.SourceItems; _sourceItem.DataBindings.Add("Value", _component, "SelectedDuplicate", true, DataSourceUpdateMode.OnPropertyChanged); _sourceItem.Format += delegate(object sender, ListControlConvertEventArgs e) { e.Value = _component.FormatItem(e.ListItem); }; _targetItem.DataSource = _component.TargetItems; _targetItem.DataBindings.Add("Value", _component, "SelectedOriginal", true, DataSourceUpdateMode.OnPropertyChanged); _targetItem.Format += delegate(object sender, ListControlConvertEventArgs e) { e.Value = _component.FormatItem(e.ListItem); }; }
public void SetComponent(IApplicationComponent component) { _component = (MergeComponentBase)component; }
public void SetComponent(IApplicationComponent component) { _component = (MergeComponentBase)component; }