Ejemplo n.º 1
0
        private async Task ExecuteOnSaveWeight()
        {
            //  IsBusy = true;
            if (Weight.Weight == 0)
            {
                DependencyService.Get <IMessage>().ShortAlert("Poids Non Valide !");
                return;
            }
            Weight.Date         = AddDateTime;
            Weight.PicturePathe = PicturePath;
            dataStore.AddWeight(WeightConverter.ConvertBack(Weight, Profil.WeightUnit));
            MessagingCenter.Send(this, "DataUpdated");
            await Navigation.PopModalAsync();

            IsBusy = false;
        }