public DoctorPanelUc(User u, login3 login)
        {
            hmsfac = new HMSFACTORY();
            InitializeComponent();
            this.login     = login;
            user           = u;
            docOwner       = hmsfac.getDoctorByUid(user.user_id);
            NewPatientList = hmsfac.getMyPatients(docOwner);
            OldPatientList = hmsfac.getMyOldPatients(docOwner);
            medicineList   = hmsfac.getMedicine();
            presList       = hmsfac.getMyPrescriptions(docOwner);

            patmed_doc.ItemsSource    = medicineList;
            patmed1_doc.ItemsSource   = medicineList;
            patmed2_doc.ItemsSource   = medicineList;
            oldpatmed_doc.ItemsSource = medicineList;
            mypresc_med.ItemsSource   = medicineList;

            patmed_doc.SelectedValuePath    = "med_id";
            patmed_doc.DisplayMemberPath    = "med_name";
            patmed1_doc.SelectedValuePath   = "med_id";
            patmed1_doc.DisplayMemberPath   = "med_name";
            patmed2_doc.DisplayMemberPath   = "med_name";
            patmed2_doc.SelectedValuePath   = "med_id";
            oldpatmed_doc.SelectedValuePath = "med_id";
            oldpatmed_doc.DisplayMemberPath = "med_name";
            mypresc_med.DisplayMemberPath   = "med_name";
            mypresc_med.SelectedValuePath   = "med_id";

            dataGrid_NewPatient.ItemsSource      = NewPatientList;
            dataGrid_MyPrescriptions.ItemsSource = presList;
            dataGrid_OldPatient.ItemsSource      = OldPatientList;
        }