private  async void msgappbar_Click(object sender, RoutedEventArgs e)
  {
     Windows.ApplicationModel.Chat.ChatMessage msg = new Windows.ApplicationModel.Chat.ChatMessage();
     msg.Body = "r u willing to donate blood";
     detailsofperson dof = new detailsofperson();
     msg.Recipients.Add(distTxt.Text);
     await Windows.ApplicationModel.Chat.ChatMessageManager.ShowComposeSmsMessageAsync(msg);
 }
        public customPushpin(detailsofperson dp)
        {
            this.InitializeComponent();
            unameTxt.Text= dp.name;
            distTxt.Text = dp.phone;
            

        }
예제 #3
0
        private async void msgappbar_Click(object sender, RoutedEventArgs e)
        {
            Windows.ApplicationModel.Chat.ChatMessage msg = new Windows.ApplicationModel.Chat.ChatMessage();
            msg.Body = "r u willing to donate blood";
            detailsofperson dof = new detailsofperson();

            msg.Recipients.Add(distTxt.Text);
            await Windows.ApplicationModel.Chat.ChatMessageManager.ShowComposeSmsMessageAsync(msg);
        }
        private async void submit_Click(object sender, RoutedEventArgs e)
        {
            detailsofperson d = new detailsofperson
            {
                name = nametxt.Text,
                phone = phonetxt.Text,
                lat=Math.Round( gp.Coordinate.Point.Position.Latitude,4).ToString(),
                lng=Math.Round( gp.Coordinate.Point.Position.Longitude,4).ToString()
            };

            await App.MobileService.GetTable<detailsofperson>().InsertAsync(d);

            var m1 = new MessageDialog("Data Inserted").ShowAsync();

            nametxt.Text = "";

            phonetxt.Text = "";
            latlong.Text = "";
            //this.Frame.Navigate(typeof(Mappage));
        }
        private async void submit_Click(object sender, RoutedEventArgs e)
        {
            detailsofperson d = new detailsofperson
            {
                name  = nametxt.Text,
                phone = phonetxt.Text,
                lat   = Math.Round(gp.Coordinate.Point.Position.Latitude, 4).ToString(),
                lng   = Math.Round(gp.Coordinate.Point.Position.Longitude, 4).ToString()
            };

            await App.MobileService.GetTable <detailsofperson>().InsertAsync(d);

            var m1 = new MessageDialog("Data Inserted").ShowAsync();

            nametxt.Text = "";

            phonetxt.Text = "";
            latlong.Text  = "";
            //this.Frame.Navigate(typeof(Mappage));
        }
예제 #6
0
 public customPushpin(detailsofperson dp)
 {
     this.InitializeComponent();
     unameTxt.Text = dp.name;
     distTxt.Text  = dp.phone;
 }