public void Sms(string number, string message) { var task = new SmsComposeTask { To = number, Body = message }; task.Show(); }
private void ListSelector_SelectionChanged(object sender, SelectionChangedEventArgs e) { switch (((ShareItem)((LongListSelector)sender).SelectedItem).Target) { case "Email": { EmailComposeTask ect = new EmailComposeTask(); ect.Body = link; ect.Show(); break; } case "Messages": { SmsComposeTask sct = new SmsComposeTask(); sct.Body = link; sct.Show(); break; } case "Social networks": { ShareLinkTask slt = new ShareLinkTask(); slt.LinkUri = new Uri(link); slt.Show(); break; } default: { break; } } }
private void btnComposeSms_Click(object sender, RoutedEventArgs e) { SmsComposeTask task = new SmsComposeTask(); task.To = "1234567890"; task.Body = "This is a sample SMS message."; task.Show(); }
private void shareSms_Tap(object sender, System.Windows.Input.GestureEventArgs e) { SmsComposeTask smt = new SmsComposeTask(); smt.Body = MorseMsg + Environment.NewLine + AppResources.SentFrom; smt.Show(); }
private void buttonInvite_Click(object sender, RoutedEventArgs e) { SmsComposeTask smstask = new SmsComposeTask(); smstask.To = myApp.Phone; smstask.Body = "Привет! Предлагаю установить клевую программу для удобного общения Вконтакте на Windows Phone!"; smstask.Show(); }
private void HyperlinkButton_Click(object sender, RoutedEventArgs e) { string s = ((ButtonBase)sender).Tag as string; switch (s) { case "Review": var task = new MarketplaceReviewTask(); task.Show(); break; case "Email": EmailComposeTask emailTask = new EmailComposeTask(); emailTask.To = ((ButtonBase)sender).Content.ToString(); emailTask.Subject = "定制Windows Phone应用"; emailTask.Show(); break; case "Phone": SmsComposeTask smsComposeTask = new SmsComposeTask(); smsComposeTask.To = ((ButtonBase)sender).Content.ToString(); smsComposeTask.Body = "定制Windows Phone应用"; smsComposeTask.Show(); break; } }
private void Button_Click_13(object sender, RoutedEventArgs e) { SmsComposeTask smsComposeTask = new SmsComposeTask(); smsComposeTask.To = number.Text; smsComposeTask.Show(); }
public void Sms(Point location, string address, string shortUrl) { SmsComposeTask sms = new SmsComposeTask(); //sms.To = "0123456789"; //if (StartLocation != null) //{ // sms.Body = "Start Location: X:" + StartLocation.X + " Y: " + StartLocation.Y + "\n"; //} //if (EndLocation != null) //{ // sms.Body = sms.Body + "End Location: X:" + EndLocation.X + " Y: " + EndLocation.Y + "\n"; //} if (address != "") { sms.Body = "My current location: " + address + "\n"; } if (shortUrl != "") { sms.Body += shortUrl + "\n"; } if (location != null) { if (location.X != INVALID_X_Y && location.Y != INVALID_X_Y) { sms.Body = sms.Body + "Latitude:" + location.X + " Longitude: " + location.Y + "\n"; } } sms.Show(); }
private void btnContactUs_Click(object sender, RoutedEventArgs e) { SmsComposeTask sms = new SmsComposeTask(); sms.To = "19083336782"; sms.Body = "App Feedback v1.0 - "; sms.Show(); }
public static void ShareSMS(string link) { SmsComposeTask smsComposeTask = new SmsComposeTask(); smsComposeTask.Body = _messageBody + link; smsComposeTask.Show(); }
private void nummerTask_Completed(object sender, PhoneNumberResult e) { if (e.TaskResult != TaskResult.OK) { return; } var sms = new SmsComposeTask(); sms.To = e.PhoneNumber; var flyplass = (Flyplass)Flyplasser.SelectedItem; if (flyPivot.SelectedIndex == 0) { var avgang = (Flygning)Avganger.SelectedItem; sms.Body = string.Format("Jeg flyr med {0} fra {1} og lander på {2} klokken {3:HH:mm}", avgang.Nummer, flyplass.Kode, avgang.Flyplass, avgang.Tidspunkt); sms.Show(); } else if (flyPivot.SelectedIndex == 1) { var ankomst = (Flygning)Ankomster.SelectedItem; sms.Body = string.Format("Jeg lander med {0} fra {1} til {2} klokken {3:HH:mm}", ankomst.Nummer, ankomst.Flyplass, flyplass.Kode, ankomst.Tidspunkt); sms.Show(); } }
private void smsCompose_Click(object sender, RoutedEventArgs e) { var smsCompose = new SmsComposeTask(); smsCompose.To = "97706660"; smsCompose.Body = "Hello NNUG!"; smsCompose.Show(); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnSms_Click(object sender, RoutedEventArgs e) { SmsComposeTask sms = new SmsComposeTask(); sms.Body = Body(_address, _isAddressGood); sms.Show(); }
public void SendSMS(string messege, string sender) { SmsComposeTask smsComposeTask = new SmsComposeTask(); smsComposeTask.To = sender; smsComposeTask.Body = messege; smsComposeTask.Show(); }
/// <summary> ///短信分享 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void SmsClick(object sender, EventArgs e) { var smsTask = new SmsComposeTask(); smsTask.Body = CurrentStatus.Text; smsTask.Show(); }
private void Sms_Tap(object sender, System.Windows.Input.GestureEventArgs e) { SmsComposeTask t = new SmsComposeTask(); t.Body = _currentDocument.Text; t.Show(); _hasBeenNavigatedTo = true; }
/// <summary> /// Invoke the method specified by the /// <see cref="CloudPact.MowblyFramework.Core.Features.JSMessage">JSMessage</see> object /// </summary> /// <param name="message"> /// <see cref="CloudPact.MowblyFramework.Core.Features.JSMessage">JSMessage</see> object /// </param> internal async override void InvokeAsync(JSMessage message) { try { switch (message.Method) { case "sendMail": List <string> toList = ((JToken)message.Args[0]).ToObject <List <string> >(); string subject = message.Args[1] as string; string body = message.Args[2] as string; List <string> ccList = ((JToken)message.Args[3]).ToObject <List <string> >(); List <string> bccList = ((JToken)message.Args[4]).ToObject <List <string> >(); // Create email compose task and display EmailComposeTask emailComposeTask = new EmailComposeTask(); emailComposeTask.To = String.Join("; ", toList); emailComposeTask.Subject = subject; emailComposeTask.Body = body; emailComposeTask.Cc = String.Join("; ", ccList); emailComposeTask.Bcc = String.Join("; ", bccList); UiDispatcher.BeginInvoke(() => { emailComposeTask.Show(); }); // Set app navigated to external page Mowbly.AppNavigatedToExternalPage = true; break; case "sendText": case "sendData": // Create sms compose task and show List <string> phoneNumbers = ((JToken)message.Args[0]).ToObject <List <string> >(); string text = message.Args[1] as string; SmsComposeTask smsComposeTask = new SmsComposeTask(); smsComposeTask.To = String.Join(";", phoneNumbers); smsComposeTask.Body = text; UiDispatcher.BeginInvoke(() => { smsComposeTask.Show(); }); // Set app navigated to external page Mowbly.AppNavigatedToExternalPage = true; break; default: Logger.Error("Feature " + Name + " does not support method " + message.Method); break; } } catch (Exception ce) { Logger.Error("Exception occured. Reason - " + ce.Message); } await Task.FromResult(0); }
private void button1_Click(object sender, RoutedEventArgs e) { SmsComposeTask sms = new SmsComposeTask(); sms.To = "+918826561956"; sms.Body = "PF3:"; sms.Show(); }
public static void SendReport(string body) { body += StringResources.Sharing_Thanks; var sendType = addressType.Email; string sendTo = String.Empty; bool includeSig = true; try { string nickName = App.Settings.nickname; body += String.Format(",\n{0}", nickName); sendType = App.Settings.SendMethodEnum; sendTo = App.Settings.csoEmail; includeSig = App.Settings.shareFSApp; } catch (Exception) {} if (sendType == addressType.Email) { if (includeSig) { body += StringResources.Sharing_Signature; } var emailcomposer = new EmailComposeTask {Subject = StringResources.Sharing_Subject, Body = body, To = sendTo}; emailcomposer.Show(); return; } var composeSms = new SmsComposeTask {Body = body, To = sendTo}; composeSms.Show(); }
private void ApplicationBarSendSmsButton_Click(object sender, EventArgs e) { var smsTask = new SmsComposeTask(); smsTask.To = string.Join(";", ViewModel.Contacts.Select(c => c.Number)); smsTask.Show(); }
public static void SendReport(string body) { body += StringResources.Sharing_Thanks; var sendType = addressType.Email; string sendTo = String.Empty; bool includeSig = true; try { string nickName = App.Settings.nickname; body += String.Format(",\n{0}", nickName); sendType = App.Settings.SendMethodEnum; sendTo = App.Settings.csoEmail; includeSig = App.Settings.shareFSApp; } catch (Exception) {} if (sendType == addressType.Email) { if (includeSig) { body += StringResources.Sharing_Signature; } var emailcomposer = new EmailComposeTask { Subject = StringResources.Sharing_Subject, Body = body, To = sendTo }; emailcomposer.Show(); return; } var composeSms = new SmsComposeTask { Body = body, To = sendTo }; composeSms.Show(); }
public static void ShareMessaging(string link) { SmsComposeTask smsTask = new SmsComposeTask(); smsTask.Body = link; smsTask.Show(); }
protected override void OnNavigatedTo(NavigationEventArgs e) { if (!App.settings.Contains("firsttime")) { App.settings["firsttime"] = true; NavigationService.Navigate(new Uri("/MainPage.xaml", UriKind.Relative)); } if (SendText) { SmsComposeTask sct = new SmsComposeTask(); if (App.settings.Contains("textmessage")) { sct.Body = App.settings["textmessage"].ToString(); } if (App.settings.Contains("contactnumber")) { sct.To = App.settings["contactnumber"].ToString(); } sct.Show(); SendText = false; } string imagepath = "Assets/Images/pinkbutton_tapped.png"; PinkButtonTapped = new BitmapImage(new Uri(imagepath, UriKind.Relative)); imagepath = "Assets/Images/pinkbutton.png"; PinkButtonNormal = new BitmapImage(new Uri(imagepath, UriKind.Relative)); imagepath = "Assets/Images/button_clickheretoupdateyourinfo_tapped.png"; UpdateTapped = new BitmapImage(new Uri(imagepath, UriKind.Relative)); imagepath = "Assets/Images/button_clickheretoupdateyourinfo.png"; UpdateNormal = new BitmapImage(new Uri(imagepath, UriKind.Relative)); }
private void Button_Click_3(object sender, RoutedEventArgs e) { SmsComposeTask sms = new SmsComposeTask(); sms.To = "haozi";//列表中的名字 sms.Body = "Hi ,happy new year";//短信内容 sms.Show(); }
private void buttonSpeedSms_Tap(object sender, System.Windows.Input.GestureEventArgs e) { SmsComposeTask sms = new SmsComposeTask(); sms.Body = "Monitor my speed using SlowMeDown on windows phone" + Environment.NewLine + "username: "******"accesscode: " + accesscode; sms.Show(); }
private void sndSMS_Click(object sender, EventArgs e) { SmsComposeTask sct = new SmsComposeTask(); sct.Body = lblMorsed.Text; sct.Show(); }
private void ListSelector_SelectionChanged(object sender, SelectionChangedEventArgs e) { switch (((ShareItem)((LongListSelector)sender).SelectedItem).Target) { case "Email": { EmailComposeTask ect = new EmailComposeTask(); ect.Body = link; ect.Show(); break; } case "Messages": { SmsComposeTask sct = new SmsComposeTask(); sct.Body = link; sct.Show(); break; } case "Social networks": { ShareLinkTask slt = new ShareLinkTask(); slt.LinkUri = new Uri(link); slt.Show(); break; } default: { break; } } }
private void ApplicationBarIconButton_Click_1(object sender, EventArgs e) { SmsComposeTask SMSCompose = new SmsComposeTask(); SMSCompose.To = ""; SMSCompose.Body = "Thank you for Scannig with PDIS.\n\n Your results are:"; SMSCompose.Show(); }
void ShareHandler(ShareOption option) { string body = string.Format("I am sharing this link with you {0}", ShareLink); if (option == ShareOption.Social) { var task = new ShareLinkTask { LinkUri = new Uri(ShareLink), Title = MetaData.Name, Message = "I'm sharing this with you" }; task.Show(); } else if (option == ShareOption.Text) { var task = new SmsComposeTask { Body = body }; task.Show(); } else { var task = new EmailComposeTask { Body = body }; task.Show(); } }
// to send url to user in given specified range by clicking the button private async void Button_Click(object sender, RoutedEventArgs e) { try { locationURL = "http://maps.google.com?q={0}"; string latandLong = ""; //Genarte Geo Location //SetUp Geolocator locationFinder = new Geolocator { DesiredAccuracyInMeters = 500, DesiredAccuracy = PositionAccuracy.Default }; // Try to Get The Postion try { Geoposition currentLocation = await locationFinder.GetGeopositionAsync(maximumAge : TimeSpan.FromSeconds(120), timeout : TimeSpan.FromSeconds(10)); latandLong = currentLocation.Coordinate.Latitude.ToString("0.00000") + "," + currentLocation.Coordinate.Longitude.ToString("0.00000"); } catch { } SmsComposeTask smsComposeTask = new SmsComposeTask(); smsComposeTask.To = settings["PhoneNumber"].ToString(); // Mention here the phone number to whom the sms is to be sent smsComposeTask.Body = string.Format(locationURL, latandLong); // the string containing the sms body smsComposeTask.Show(); // this will invoke the native sms edtior } catch { } }
private void SendSMSTextBlock_Tap(object sender, System.Windows.Input.GestureEventArgs e) { SmsComposeTask sendSms = new SmsComposeTask(); sendSms.To = User.PhoneNumbersAsString.Split(' ')[0].Substring(1, User.PhoneNumbersAsString.Split(' ')[0].Length - 2); sendSms.Body = "Welcome To VkPro"; sendSms.Show(); }
private void SMSComposeTask_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { Microsoft.Phone.Tasks.SmsComposeTask smsComposeTask = new SmsComposeTask(); smsComposeTask.To = "555-555-5555"; smsComposeTask.Body = "Meet me for pizza."; smsComposeTask.Show(); }
public void SendSMS(string body, string phoneNumber) { var smsCompose = new SmsComposeTask { To = phoneNumber, Body = body }; DoWithInvalidOperationProtection(smsCompose.Show); }
private void sms_menuItem_Click(object sender, RoutedEventArgs e) { TodoItem selectedItem = (sender as MenuItem).DataContext as TodoItem; SmsComposeTask smsComposeTask = new SmsComposeTask(); smsComposeTask.Body = selectedItem.Town + "\n" + selectedItem.Near_Famous + "\n" + selectedItem.Latitude + "\n" + selectedItem.Longitude + "\n\n" + "via OpenPublicToilets"; smsComposeTask.Show(); }
public ShowReminder() { InitializeComponent(); SmsComposerTask = new SmsComposeTask(); PhoneNumberChooserTask = new PhoneNumberChooserTask(); PhoneNumberChooserTask.Completed += phoneNumberChooserTask_Completed; AddButton.IsEnabled = false; }
private void sms_Tap(object sender, System.Windows.Input.GestureEventArgs e) { SmsComposeTask smsComposeTask = new SmsComposeTask(); smsComposeTask.To = ""; smsComposeTask.Body = "Try this ringtone. It's great! \nhttp://www.windowsphone.com/en-us/store/app/gangnam-style-ringtone/c4391a95-c803-4eed-9a3b-0963d004a0b6"; smsComposeTask.Show(); }
public void sendText() { SmsComposeTask SMSCompose = new SmsComposeTask(); SMSCompose.To = phoneNumber; SMSCompose.Body = "Kelly has arrived safely to her destination ()!"; SMSCompose.Show(); }
private void buttonInvite_Click(object sender, RoutedEventArgs e) { SmsComposeTask smstask = new SmsComposeTask(); smstask.To = myApp.Phone; smstask.Body = "Привет! Предлагаю установить клевую программу для удобного общения Вконтакте на Windows Phone!"; smstask.Show(); }
private void Messaging_Tap(object sender, System.Windows.Input.GestureEventArgs e) { SmsComposeTask smsComposeTask = new SmsComposeTask(); smsComposeTask.To = ""; smsComposeTask.Body = ""; smsComposeTask.Show(); }
private void sms_Tap(object sender, System.Windows.Input.GestureEventArgs e) { SmsComposeTask smsComposeTask = new SmsComposeTask(); smsComposeTask.To = ""; smsComposeTask.Body = "Try " + AppResources.ApplicationTitle + " ringtone. It's great! \nhttp://www.windowsphone.com/en-US/store/publishers?publisherId=DamSoft"; smsComposeTask.Show(); }
private void MessageTextBlock_Tap(object sender, System.Windows.Input.GestureEventArgs e) { SmsComposeTask smsComposeTask = new SmsComposeTask(); smsComposeTask.Body = shareText; smsComposeTask.Show(); }
private void Messages_OnTap(object sender, GestureEventArgs e) { var shareStatusTask = new SmsComposeTask { Body = _infoSharing.Quote }; shareStatusTask.Show(); }
public static void SendSms() { SmsComposeTask smsComposeTask = new SmsComposeTask(); smsComposeTask.To = "+919272374111"; smsComposeTask.Body = "Dear Advisor, please get me more details of ICICI Prudential life insurance plans."; smsComposeTask.Show(); }
private void sms_Tap(object sender, System.Windows.Input.GestureEventArgs e) { SmsComposeTask smsComposeTask = new SmsComposeTask(); smsComposeTask.To = ""; smsComposeTask.Body = "Try this ringtone. It's great! \nhttp://www.windowsphone.com/en-us/store/app/hello-vietnam-ringtone/c8eba94c-5478-4e56-8119-abf7347d7a7d"; smsComposeTask.Show(); }
private void Button_Click(object sender, RoutedEventArgs e) { SmsComposeTask sct = new SmsComposeTask(); sct.To = txtPhoneNo.Text; sct.Body = txtMessage.Text; sct.Show(); }
private void ShareSms_Click(object sender, RoutedEventArgs e) { SmsComposeTask task = new SmsComposeTask() { Body = "I like the MobiPicasa Application, you should try it out!", }; task.Show(); }
private void MessageTextBlock_Tap(object sender, System.Windows.Input.GestureEventArgs e) { SmsComposeTask smsComposeTask = new SmsComposeTask(); smsComposeTask.Body = shareText; smsComposeTask.Show(); }
//Connect private void button1_Click(object sender, RoutedEventArgs e) { SmsComposeTask sms = new SmsComposeTask(); sms.To = "+918826561956"; sms.Body = "PF1:"; sms.Show(); }
private void msg_Click(object sender, RoutedEventArgs e) { SmsComposeTask smsComposeTask = new SmsComposeTask(); smsComposeTask.To = "8860660862"; smsComposeTask.Body = "hghgc latitude is"+latitudelongitude.Latitude+"longitude is"+latitudelongitude.Longitude; smsComposeTask.Show(); }
public void ShareText(string text) { var smsComposeTask = new SmsComposeTask { Body = text }; smsComposeTask.Show(); }
private void Button_Click_1(object sender, RoutedEventArgs e) { SmsComposeTask smsComposeTask = new SmsComposeTask(); if (tb_number.Text == "(No Number)") smsComposeTask.To = tb_name.Text; else smsComposeTask.To = tb_number.Text; smsComposeTask.Body = ""; smsComposeTask.Show(); }
public virtual void Execute(object parameter) { MensagemModel mensagem = (MensagemModel) parameter; SmsComposeTask smsComposeTask = new SmsComposeTask() { To = (mensagem.Destinatario == Destinatario.METRO) ? Constantes.TELEPHONE_METRO : Constantes.TELEPHONE_CPTM, Body = mensagem.GetMensagem() }; smsComposeTask.Show(); }
void WP8Statics_OpenSMSHandle(object sender, EventArgs e) { String str = (string)sender; string[] strs = str.Split('|'); SmsComposeTask smsComposeTask = new SmsComposeTask(); smsComposeTask.To = strs[0]; smsComposeTask.Body = strs[1]; smsComposeTask.Show(); }
private void btnCreateSMS_Click(object sender, RoutedEventArgs e) { this.btnCreateSMS.Click -= new RoutedEventHandler(btnCreateSMS_Click); //somaAdViewer.StopAds(); SmsComposeTask sms = new SmsComposeTask(); sms.To = "1900"; sms.Body = "PORTO"; sms.Show(); }
public void send(string options) { string[] optValues = JsonHelper.Deserialize<string[]>(options); String number = optValues[0]; String message = optValues[1]; SmsComposeTask task = new SmsComposeTask(); task.Body = message; task.To = number; task.Show(); }
private void sendSms() { string phoneNumber = this.inputPhoneNumber.Text, messageText = this.inputMessage.Text; if (phoneNumber.Length > 2) { SmsComposeTask smsComposeTask = new SmsComposeTask(); smsComposeTask.To = phoneNumber; smsComposeTask.Body = messageText; smsComposeTask.Show(); } }
private void txtGroupBtn_Click(object sender, RoutedEventArgs e) { SmsComposeTask smsTask = new SmsComposeTask(); String message = "Here is the message to be sent out"; foreach (var contact in newGroup.People) smsTask.To += contact.PhoneNumber + ";"; smsTask.Body = message; smsTask.Show(); }
public void shareViaSMS(string jsonArgs) { var options = JsonHelper.Deserialize<string[]>(jsonArgs); SmsComposeTask smsComposeTask = new SmsComposeTask(); smsComposeTask.To = options[1]; SMSMessageClass m = JsonConvert.DeserializeObject<SMSMessageClass>(options[0]); smsComposeTask.Body = m.message; smsComposeTask.Show(); DispatchCommandResult(new PluginResult(PluginResult.Status.OK, true)); }
void phoneNumberChooser_Completed(object sender, PhoneNumberResult e) { if (e.TaskResult == TaskResult.OK) { SmsComposeTask smsComposer = new SmsComposeTask(); smsComposer.Body = "Happy New Year! Jackie"; smsComposer.To = e.PhoneNumber; smsComposer.Show(); } else if (e.TaskResult == TaskResult.Cancel) MessageBox.Show("Cannot send SMS without a phone number"); else MessageBox.Show("Error getting phone number:\n" + e.Error.Message); }
internal static void ShareViaSms(ShareModel model) { try { var task = new SmsComposeTask() { Body = model.Description + "\n" + @"http://en.wikipedia.org" + model.Link }; task.Show(); } catch (Exception) { // fast-clicking can result in exception, so we just handle it } }