예제 #1
0
        protected override async Task OnInitializedAsync()
        {
            Photo = await PhotoDataService.GetPhotoAsync(int.Parse(PhotoId));

            Persons = await PhotoDataService.GetAllPersonsAsync();

            MemberRef = new ElementReference[Photo.Faces.Count];
        }
예제 #2
0
 protected override async Task OnInitializedAsync()
 {
     Photos = (await PhotoDataService.GetAllPhotos()).ToList();
 }
예제 #3
0
 protected async Task OnChangePersonAsync(int faceId, object personId)
 {
     await PhotoDataService.UpdateFaceAsync(faceId, (int)personId);
 }
예제 #4
0
 private async Task InitializeAsync()
 {
     PhotoDataService.Initialize(ApplicationData.Current.LocalFolder.Path);
     await Task.CompletedTask;
 }
예제 #5
0
 protected override async Task OnInitializedAsync()
 {
     Photo = await PhotoDataService.GetPhotoById(int.Parse(PhotoId));
 }