Exemplo n.º 1
0
		/// <summary>
		/// Constructor.
		/// </summary>
		public StaffSelectionComponentControl(StaffSelectionComponent component)
			: base(component)
		{
			_component = component;
			InitializeComponent();

			_staff.LookupHandler = _component.StaffLookupHandler;
			_staff.DataBindings.Add("Value", _component, "Staff", true, DataSourceUpdateMode.OnPropertyChanged);
			_staff.DataBindings.Add("LabelText", _component, "LabelText", true, DataSourceUpdateMode.OnPropertyChanged);
		}
Exemplo n.º 2
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public StaffSelectionComponentControl(StaffSelectionComponent component)
            : base(component)
        {
            _component = component;
            InitializeComponent();

            _staff.LookupHandler = _component.StaffLookupHandler;
            _staff.DataBindings.Add("Value", _component, "Staff", true, DataSourceUpdateMode.OnPropertyChanged);
            _staff.DataBindings.Add("LabelText", _component, "LabelText", true, DataSourceUpdateMode.OnPropertyChanged);
        }
 /// <summary>
 /// Called by the host to assign this view to a component.
 /// </summary>
 public void SetComponent(IApplicationComponent component)
 {
     _component = (StaffSelectionComponent)component;
 }
 /// <summary>
 /// Called by the host to assign this view to a component.
 /// </summary>
 public void SetComponent(IApplicationComponent component)
 {
     _component = (StaffSelectionComponent)component;
 }