/// <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; }
public void SetComponent(IApplicationComponent component) { _component = (SchedulingComponent)component; }