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; }
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)); }
public customPushpin(detailsofperson dp) { this.InitializeComponent(); unameTxt.Text = dp.name; distTxt.Text = dp.phone; }