コード例 #1
0
 public override async Task InitAsync()
 {
     await ExecuteAsync(async() =>
     {
         await InitialDataProviderService.AddInitialData();
         await LoadPatients();
     });
 }
コード例 #2
0
 async Task OnAddNewPatient()
 {
     await ExecuteAsync(async() =>
     {
         Patient.PatientId = InitialDataProviderService.GetPatientId(10);
         Patient.DoctorId  = DoctorSelected.Id;
         await PatientsService.AddAsync(Patient);
         await Navigation.PopAsync();
     });
 }