Пример #1
0
        /// <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;

		}
Пример #3
0
 public void SetComponent(IApplicationComponent component)
 {
     _component = (SelectorEditorComponent)component;
 }
Пример #4
0
 public void SetComponent(IApplicationComponent component)
 {
     _component = (SelectorEditorComponent)component;
 }