コード例 #1
0
        private async Task AddImageAsync()
        {
            try
            {
                PlantTaggerV1.Models.Image img = await _photoPickerService.PickPhotoAsync();

                await _plantService.AddImage(CurrentPlant.Uuid, img);
                await RefreshAsync();
            }
            catch (Exception ex)
            {
                System.Diagnostics.Debug.WriteLine("Error: " + ex.Message);
                await DialogService.ShowAlertAsync(ex.Message, "Add Image Failed", "Ok");
            }
        }