private void Submit_Clicked(object sender, EventArgs e) { // Submit Comment and stars // Get Rating // Get Any comments submit.IsEnabled = false; double rated = rating.Value; string payment = payments.SelectedItem.ToString(); _firebaseDatabase.SubmitTripRating(Trip.Key, rated, payment); _firebaseDatabase.RemoveGetProfile("users"); App.Current.MainPage = new NavigationPage(new MainPage()); }
protected override void OnDisappearing() { base.OnDisappearing(); _firebaseDatabase.RemoveGetProfile("users"); }