Ejemplo n.º 1
0
        private async void UpdateRecyclerExecute(object obj)
        {
            await RecyclerDA.UpdateRecycler(Recycler);

            await Application.Current.MainPage.DisplayAlert("User Profile", "Your profile is updated", "OK");

            await Application.Current.MainPage.Navigation.PopAsync();
        }
Ejemplo n.º 2
0
        private async void UpdateSubmissionForAll()
        {
            Submission.Material      = Material.MaterialID;
            Submission.Status        = StatusSubmitted;
            Submission.PointsAwarded = WeightInKg * Material.PointsPerKg;
            Submission.ActualDate    = DateTime.Today;
            Recycler.TotalPoints    += Submission.PointsAwarded;
            UpdateRecyclerEcoLevel();
            await RecyclerDA.UpdateRecycler(Recycler);

            Collector.TotalPoints += Submission.PointsAwarded;
            await CollectorDA.UpdateCollector(Collector);

            await SubmissionDA.UpdateSubmission(Submission);
        }