当前位置: 首页>>代码示例>>C#>>正文


C# SmsComposeTask类代码示例

本文整理汇总了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();
 }
开发者ID:follesoe,项目名称:WP7Demos,代码行数:7,代码来源:Launchers.xaml.cs

示例2: SendSMS

 public void SendSMS(string messege, string sender)
 {
     SmsComposeTask smsComposeTask = new SmsComposeTask();
     smsComposeTask.To = sender;
     smsComposeTask.Body = messege;
     smsComposeTask.Show();
 }
开发者ID:praveenmohanmm,项目名称:PurposeColor_Bkp_Code,代码行数:7,代码来源:DeviceCommunications.cs

示例3: Sms

 public void Sms(string number, string message) {
     var task = new SmsComposeTask {
         To = number,
         Body = message
     };
     task.Show();
 }
开发者ID:rmarinho,项目名称:acr-xamarin-forms,代码行数:7,代码来源:PhoneService.cs

示例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;
             }
     }
 }
开发者ID:jookie,项目名称:Gaj2,代码行数:31,代码来源:SharePage.xaml.cs

示例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();
		}
开发者ID:darthcaedus58,项目名称:my-time-wp7,代码行数:25,代码来源:Reporting.cs

示例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();
 }
开发者ID:gibratim,项目名称:pdis,代码行数:7,代码来源:Results.xaml.cs

示例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();
 }
开发者ID:mikejan,项目名称:EntacikGorc,代码行数:7,代码来源:UserInformationPage.xaml.cs

示例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));
        }
开发者ID:jeffblankenburg,项目名称:PinkButton,代码行数:35,代码来源:Home.xaml.cs

示例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();
 }
开发者ID:chromigo,项目名称:VK_Light,代码行数:7,代码来源:Invite.xaml.cs

示例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();
 }
开发者ID:plotkin,项目名称:wp_hello_task,代码行数:7,代码来源:MainPage.xaml.cs

示例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();
 }
开发者ID:haozzzzzzzz,项目名称:WindowsPhone_Task,代码行数:7,代码来源:MainPage.xaml.cs

示例12: button1_Click

 private void button1_Click(object sender, RoutedEventArgs e)
 {
     SmsComposeTask sms = new SmsComposeTask();
     sms.To = "+918826561956";
     sms.Body = "PF3:";
     sms.Show();
 }
开发者ID:abhay123lp,项目名称:find-ur-pal,代码行数:7,代码来源:Faculty.xaml.cs

示例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;
 }
开发者ID:hmehart,项目名称:Notepad,代码行数:7,代码来源:SendAs.xaml.cs

示例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();
 }
开发者ID:disbitski,项目名称:WindowsPhoneGarage,代码行数:7,代码来源:About.xaml.cs

示例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();
 }
开发者ID:bikila,项目名称:MobiPicasa,代码行数:8,代码来源:HelpPage.xaml.cs


注:本文中的SmsComposeTask类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。