コード例 #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);
		}
コード例 #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);
        }
コード例 #3
0
 /// <summary>
 /// Called by the host to assign this view to a component.
 /// </summary>
 public void SetComponent(IApplicationComponent component)
 {
     _component = (StaffSelectionComponent)component;
 }
コード例 #4
0
 /// <summary>
 /// Called by the host to assign this view to a component.
 /// </summary>
 public void SetComponent(IApplicationComponent component)
 {
     _component = (StaffSelectionComponent)component;
 }