/// <summary>
        /// Constructor
        /// </summary>
        public SchedulingComponentControl(SchedulingComponent component)
            :base(component)
        {
            InitializeComponent();

            _component = component;

            // TODO add .NET databindings to _component
            _comment.DataBindings.Add("Value", _component, "Comment", true, DataSourceUpdateMode.OnPropertyChanged);
            _followUpDate.DataBindings.Add("Value", _component, "AppointmentDate", true, DataSourceUpdateMode.OnPropertyChanged);
            _patientInfo.DataBindings.Add("Value", _component, "PatientInfo", true, DataSourceUpdateMode.OnPropertyChanged);

            _appointmentsTableView.Table = _component.Appointments;
            _appointmentsTableView.DataBindings.Add("Selection", _component, "SelectedAppointment", true, DataSourceUpdateMode.OnPropertyChanged);
            _appointmentsTableView.MenuModel = _component.MenuModel;
            _appointmentsTableView.ToolbarModel = _component.ToolbarModel;
        }
        /// <summary>
        /// Constructor
        /// </summary>
        public SchedulingComponentControl(SchedulingComponent component)
            : base(component)
        {
            InitializeComponent();

            _component = component;

            // TODO add .NET databindings to _component
            _comment.DataBindings.Add("Value", _component, "Comment", true, DataSourceUpdateMode.OnPropertyChanged);
            _followUpDate.DataBindings.Add("Value", _component, "AppointmentDate", true, DataSourceUpdateMode.OnPropertyChanged);
            _patientInfo.DataBindings.Add("Value", _component, "PatientInfo", true, DataSourceUpdateMode.OnPropertyChanged);

            _appointmentsTableView.Table = _component.Appointments;
            _appointmentsTableView.DataBindings.Add("Selection", _component, "SelectedAppointment", true, DataSourceUpdateMode.OnPropertyChanged);
            _appointmentsTableView.MenuModel    = _component.MenuModel;
            _appointmentsTableView.ToolbarModel = _component.ToolbarModel;
        }
示例#3
0
 public void SetComponent(IApplicationComponent component)
 {
     _component = (SchedulingComponent)component;
 }
 public void SetComponent(IApplicationComponent component)
 {
     _component = (SchedulingComponent)component;
 }