public void EditResidentPatient()
        {
            if (EditRoomNumberComboBox == null || EditPatientDepartment == null)
            {
                textValidation = "Cannot Have Empty Values";
                return;
            }
            Hospital.Patients[PatientID].Name    = PatientName = EditPatientNameTextBox;
            Hospital.Patients[PatientID].Address = PatientAddress = EditPatientAddressTextBox;
            PatientBirthDate = EditPatientBirthDatePicker.ToShortDateString();
            Hospital.Patients[PatientID].BirthDate = EditPatientBirthDatePicker;
            PatientDepartment = Hospital.Departments[EditPatientDepartment.Key].Name;
            ((ResidentPatient)Hospital.Patients[PatientID]).Department.Patients.Remove(PatientID);
            ((ResidentPatient)Hospital.Patients[PatientID]).Department = Hospital.Departments[EditPatientDepartment.Key];
            ((ResidentPatient)Hospital.Patients[PatientID]).Department.Patients.Add(PatientID, Hospital.Patients[PatientID]);
            ((ResidentPatient)Hospital.Patients[PatientID]).Room.Patients.Remove(PatientID);
            ((ResidentPatient)Hospital.Patients[PatientID]).Room = Hospital.Rooms[EditRoomNumberComboBox.Key];
            Hospital.Rooms[EditRoomNumberComboBox.Key].addPatient(Hospital.Patients[PatientID]);

            PatientRoomNumber = EditRoomNumberComboBox.Value;

            NursesList.Clear();
            foreach (Nurse nurse in ((ResidentPatient)Hospital.Patients[PatientID]).Room.Nurses.Values)
            {
                NursesList.Add(new ComboBoxPairs(nurse.ID, nurse.Name));
            }
            NursesNumber = "Nurses:" + ((ResidentPatient)Hospital.Patients[PatientID]).Room.Nurses.Count().ToString();

            HospitalDB.UpdatePatient(Hospital.Patients[PatientID]);
            Home.ViewModel.CloseRootDialog();
        }
        public void AssignNurse()
        {
            Home.ViewModel.CloseRootDialog();

            NursesList.Add(new ComboBoxPairs(NurseSelectedItem.Key, NurseSelectedItem.Value));

            HospitalDB.InsertNurseRoom(NurseSelectedItem.Key, RoomID);

            Hospital.Rooms[RoomID].addNurse((Nurse)(Hospital.Employees[NurseSelectedItem.Key]));
            ((Nurse)Hospital.Employees[NurseSelectedItem.Key]).addRoom(Hospital.Rooms[RoomID]);

            NursesComboBoxItems.Remove(NurseSelectedItem);
            NursesNumber = $"Nurses : {NursesList.Count}";
        }
        public async void RemoveNurse()
        {
            object result = await DialogHost.Show(new DeleteMessageBox(), "RootDialog");

            if (result.Equals(true))
            {
                NursesComboBoxItems.Add(new ComboBoxPairs(ListSelectedNurse.Key, ListSelectedNurse.Value));
                Hospital.Rooms[RoomID].removeNurse(ListSelectedNurse.Key);
                ((Nurse)Hospital.Employees[ListSelectedNurse.Key]).removeRoom(RoomID);
                HospitalDB.DeleteNurseRoom(ListSelectedNurse.Key, RoomID);
                NursesList.Remove(ListSelectedNurse);
                NursesNumber = $"Nurses : {NursesList.Count}";
            }
        }