Exemple #1
0
        public a15Page()
        {
            InitializeComponent();
            LocationLogic.Init();

            geoText.Text = LocationLogic.Get();
        }
Exemple #2
0
        void Handle_Clicked(object sender, System.EventArgs e)
        {
            var phones = Contacts.GetPhones();

            foreach (var phone in phones)
            {
                string mapLink = String.Format(@"https://maps.google.com/maps?z=18&q=loc:{0}+{1}", LocationLogic.GetLat(), LocationLogic.GetLong());

                mapLink = mapLink.Replace(',', '.');

                SendSms.Send(phone, String.Format("I'm here: {0} maps: {1}", LocationLogic.Get(), mapLink));
                //SendWhatsApp.Send ( phone, String.Format ("Я нахожусь здесь: {0}", LocationLogic.Get ()));
            }
        }