/// <summary> /// Constructor /// </summary> public SelectorEditorComponentControl(SelectorEditorComponent component) : base(component) { InitializeComponent(); _component = component; _usersSelector.AvailableItemsTable = _component.AvailableItemsTable; _usersSelector.SelectedItemsTable = _component.SelectedItemsTable; _usersSelector.ItemAdded += OnItemsAdded; _usersSelector.ItemRemoved += OnItemsRemoved; _usersSelector.ReadOnly = _component.IsReadOnly; }
/// <summary> /// Constructor /// </summary> public SelectorEditorComponentControl(SelectorEditorComponent component) :base(component) { InitializeComponent(); _component = component; _usersSelector.AvailableItemsTable = _component.AvailableItemsTable; _usersSelector.SelectedItemsTable = _component.SelectedItemsTable; _usersSelector.ItemAdded += OnItemsAdded; _usersSelector.ItemRemoved += OnItemsRemoved; _usersSelector.ReadOnly = _component.IsReadOnly; }
public void SetComponent(IApplicationComponent component) { _component = (SelectorEditorComponent)component; }