private async void NewPhotoButton_Clicked(object sender, EventArgs e) { MediaFile = await CommonPhotoUtils.TakePhoto(); if (MediaFile == null) { return; } UploadingImage.Source = new FileImageSource { File = MediaFile.Path }; }
private async void AddPhotoButton_Clicked(object sender, EventArgs e) { var file = await CommonPhotoUtils.TakePhoto(); if (file == null) { return; } var addNewPhotoContentPage = new AddNewPhotoContentPage(CIsso, file, _dataInformation.Max(x => x.N)); addNewPhotoContentPage.PhotoAdded += AddNewPhotoContentPage_PhotoAdded; await Navigation.PushModalAsync(addNewPhotoContentPage); }