public EditPatientWindow(PatientManager patientmanager)
 {
     InitializeComponent();
     DataContext = this;
     Patient = new Patient();
     IsEdit = false;
     this.PMGR = patientmanager;
 }
        //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
        public PatientManagementView(PatientManager patientmanager)
        {
            Patientmanager = patientmanager;
            HospitalManager = patientmanager.AppManager.HospitalManagement;
            InventoryManager = patientmanager.AppManager.InventoryManagement;

            FillPatients();
        }