protected override async Task OnInitializedAsync() { Photo = await PhotoDataService.GetPhotoAsync(int.Parse(PhotoId)); Persons = await PhotoDataService.GetAllPersonsAsync(); MemberRef = new ElementReference[Photo.Faces.Count]; }
protected override async Task OnInitializedAsync() { Photos = (await PhotoDataService.GetAllPhotos()).ToList(); }
protected async Task OnChangePersonAsync(int faceId, object personId) { await PhotoDataService.UpdateFaceAsync(faceId, (int)personId); }
private async Task InitializeAsync() { PhotoDataService.Initialize(ApplicationData.Current.LocalFolder.Path); await Task.CompletedTask; }
protected override async Task OnInitializedAsync() { Photo = await PhotoDataService.GetPhotoById(int.Parse(PhotoId)); }