本文整理汇总了C#中SmsComposeTask类的典型用法代码示例。如果您正苦于以下问题:C# SmsComposeTask类的具体用法?C# SmsComposeTask怎么用?C# SmsComposeTask使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SmsComposeTask类属于命名空间,在下文中一共展示了SmsComposeTask类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: smsCompose_Click
private void smsCompose_Click(object sender, RoutedEventArgs e)
{
var smsCompose = new SmsComposeTask();
smsCompose.To = "97706660";
smsCompose.Body = "Hello NNUG!";
smsCompose.Show();
}
示例2: SendSMS
public void SendSMS(string messege, string sender)
{
SmsComposeTask smsComposeTask = new SmsComposeTask();
smsComposeTask.To = sender;
smsComposeTask.Body = messege;
smsComposeTask.Show();
}
示例3: Sms
public void Sms(string number, string message) {
var task = new SmsComposeTask {
To = number,
Body = message
};
task.Show();
}
示例4: ListSelector_SelectionChanged
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;
}
}
}
示例5: SendReport
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();
}
示例6: ApplicationBarIconButton_Click_1
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();
}
示例7: SendSMSTextBlock_Tap
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();
}
示例8: OnNavigatedTo
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));
}
示例9: buttonInvite_Click
private void buttonInvite_Click(object sender, RoutedEventArgs e)
{
SmsComposeTask smstask = new SmsComposeTask();
smstask.To = myApp.Phone;
smstask.Body = "Привет! Предлагаю установить клевую программу для удобного общения Вконтакте на Windows Phone!";
smstask.Show();
}
示例10: btnComposeSms_Click
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();
}
示例11: Button_Click_3
private void Button_Click_3(object sender, RoutedEventArgs e)
{
SmsComposeTask sms = new SmsComposeTask();
sms.To = "haozi";//列表中的名字
sms.Body = "Hi ,happy new year";//短信内容
sms.Show();
}
示例12: button1_Click
private void button1_Click(object sender, RoutedEventArgs e)
{
SmsComposeTask sms = new SmsComposeTask();
sms.To = "+918826561956";
sms.Body = "PF3:";
sms.Show();
}
示例13: Sms_Tap
private void Sms_Tap(object sender, System.Windows.Input.GestureEventArgs e)
{
SmsComposeTask t = new SmsComposeTask();
t.Body = _currentDocument.Text;
t.Show();
_hasBeenNavigatedTo = true;
}
示例14: btnContactUs_Click
private void btnContactUs_Click(object sender, RoutedEventArgs e)
{
SmsComposeTask sms = new SmsComposeTask();
sms.To = "19083336782";
sms.Body = "App Feedback v1.0 - ";
sms.Show();
}
示例15: ShareSms_Click
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();
}