Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 public blDoctorSearch()
 {
     this.objBlDocotor = new blDoctor();
 }
Exemplo n.º 3
0
 public blDoctorSearch(blDoctor objBlDocotor)
 {
     this.objBlDocotor = objBlDocotor;
 }