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}"; } }