private void UserControl_Loaded(object sender, RoutedEventArgs e) { this.MyViewModel = (NewAppointmentViewModel)this.DataContext; MyBlDoctor = new blDoctor(); dbDoctorSearch = new blDoctorSearch(MyBlDoctor); dbPatientSearch = new blPatSearch(); srcDoctore.DataProvider = this.dbDoctorSearch; srcPatient.DataProvider = this.dbPatientSearch; //BlPatient abc = new BlPatient(); //dhPatient TestObj = new dhPatient(); //TestObj.vFullName = "saqib Ali"; //TestObj.vGender = "Male"; //TestObj.iPatAge = 14; //TestObj.bActive = true; //abc.AddNewPatient(TestObj); this.AppointmentInfo.DataContext = new dhAppointment(); this.PatientInformationGrid.DataContext = new dhPatient(); }
public blDoctorSearch() { this.objBlDocotor = new blDoctor(); }
public blDoctorSearch(blDoctor objBlDocotor) { this.objBlDocotor = objBlDocotor; }