コード例 #1
0
        public Cliente_ convert(Cliente m)
        {
            JsonSerializer serializer = new JsonSerializer();
            JObject        json       = JObject.Parse(JsonConvert.SerializeObject(m));
            Cliente_       p          = (Cliente_)serializer.Deserialize(new JTokenReader(json), typeof(Cliente_));

            return(p);
        }
コード例 #2
0
ファイル: Cp_Mapa.xaml.cs プロジェクト: Azteca-7/Marchand
        private async Task PoeEnderecodeNoMapaAsync(Cliente_ cliente)
        {
            string pais = "MX", codigoPais = "52";

            if (cliente == null)
            {
                await DisplayAlert("Error de datos", "Faltan datos obligatorios", "OK");
            }
            else
            {
                try
                {
                    //await CrossExternalMaps.Current.NavigationTo("Space Needle", 47.6204, -122.3491, NavigationType.Driving);
                    await CrossExternalMaps.Current.NavigateTo("Xamarin", "394 pacific ave.", "San Francisco", "CA", "94111", "USA", "USA");
                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }
        }