Esempio n. 1
0
        private async void AddCompte()
        {
            try
            {
                await _wsService.AddCompte(AddedCompte);

                await _bingService.getLocation(AddedCompte);

                MessageDialog popup = new MessageDialog($"L'ajout du compte {AddedCompte.Nom} { AddedCompte.Prenom} a réussi. Les coordonnées sont {AddedCompte.Latitude};{AddedCompte.Longitude}");
                await popup.ShowAsync();

                AddedCompte = new Compte();
            }
            catch (Exception e)
            {
                MessageDialog popup = new MessageDialog(e.Message);
                await popup.ShowAsync();
            }
        }