/// <summary>
        /// Constructor
        /// </summary>
        public StaffStaffGroupEditorComponentControl(StaffStaffGroupEditorComponent component)
            : base(component)
        {
            InitializeComponent();

            _component = component;
            _staffGroupSelector.AvailableItemsTable = _component.AvailableGroupsTable;
            _staffGroupSelector.SelectedItemsTable  = _component.SelectedGroupsTable;
            _staffGroupSelector.ItemAdded          += OnItemsAddedOrRemoved;
            _staffGroupSelector.ItemRemoved        += OnItemsAddedOrRemoved;
            _staffGroupSelector.ReadOnly            = _component.ReadOnly;
        }
        /// <summary>
        /// Constructor
        /// </summary>
        public StaffStaffGroupEditorComponentControl(StaffStaffGroupEditorComponent component)
            :base(component)
        {
            InitializeComponent();

            _component = component;
            _staffGroupSelector.AvailableItemsTable = _component.AvailableGroupsTable;
            _staffGroupSelector.SelectedItemsTable = _component.SelectedGroupsTable;
            _staffGroupSelector.ItemAdded += OnItemsAddedOrRemoved;
            _staffGroupSelector.ItemRemoved += OnItemsAddedOrRemoved;
        	_staffGroupSelector.ReadOnly = _component.ReadOnly;
        }
 public void SetComponent(IApplicationComponent component)
 {
     _component = (StaffStaffGroupEditorComponent)component;
 }
 public void SetComponent(IApplicationComponent component)
 {
     _component = (StaffStaffGroupEditorComponent)component;
 }