Open Colima-97 opened 5 years ago
@PhonyFish, in the view AgregarCamaPage.xaml.cs, when you click the button Guardar and no information is given, there is no message showed.
private async void Button_Clicked(object sender, EventArgs e) { await _vm.PostCamaAsync(huerto.Text, idCama.Text, tipo.Text, estructura.Text, planta.Text, fechaCultivo.Text); }
At least, Firebase helps you out with it, if no data is given, it won't save anything. But you must show something.
Also, why do you have a SelectPhoto method? You don't even need it.
private async void SelectPhoto(object sender, System.EventArgs e) { if (CrossMedia.Current.IsTakePhotoSupported) { var imagen = await CrossMedia.Current.PickPhotoAsync(); var stream = imagen.GetStream(); streamFile = stream; if (imagen != null) { var guid = Guid.NewGuid(); image.IsVisible = true; streamImage = guid.ToString(); image.Source = ImageSource.FromStream(imagen.GetStream); } } }
oks, I'll see what I can do about that message. About the image method, beats me why it's there, I told carlitos it wasn't needed
Ok buddy, see what you can do. And upload the changes on master.
@PhonyFish, in the view AgregarCamaPage.xaml.cs, when you click the button Guardar and no information is given, there is no message showed.
private async void Button_Clicked(object sender, EventArgs e) { await _vm.PostCamaAsync(huerto.Text, idCama.Text, tipo.Text, estructura.Text, planta.Text, fechaCultivo.Text); }
At least, Firebase helps you out with it, if no data is given, it won't save anything. But you must show something.
Also, why do you have a SelectPhoto method? You don't even need it.
private async void SelectPhoto(object sender, System.EventArgs e) { if (CrossMedia.Current.IsTakePhotoSupported) { var imagen = await CrossMedia.Current.PickPhotoAsync(); var stream = imagen.GetStream(); streamFile = stream; if (imagen != null) { var guid = Guid.NewGuid(); image.IsVisible = true; streamImage = guid.ToString(); image.Source = ImageSource.FromStream(imagen.GetStream); } } }