• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# SmsComposeTask类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中SmsComposeTask的典型用法代码示例。如果您正苦于以下问题:C# SmsComposeTask类的具体用法?C# SmsComposeTask怎么用?C# SmsComposeTask使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



SmsComposeTask类属于命名空间,在下文中一共展示了SmsComposeTask类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: Messages_OnTap

 private void Messages_OnTap(object sender, GestureEventArgs e)
 {
     var shareStatusTask = new SmsComposeTask
     {
         Body = _infoSharing.Quote
     };
     shareStatusTask.Show();
 }
开发者ID:KirillFormado,项目名称:DarumaWP,代码行数:8,代码来源:SharingView.xaml.cs


示例17: ShowReminder

 public ShowReminder()
 {
     InitializeComponent();
     SmsComposerTask = new SmsComposeTask();
     PhoneNumberChooserTask = new PhoneNumberChooserTask();
     PhoneNumberChooserTask.Completed += phoneNumberChooserTask_Completed;
     AddButton.IsEnabled = false;
 }
开发者ID:xLs51,项目名称:SMSReminders,代码行数:8,代码来源:ShowReminder.xaml.cs


示例18: MessageTextBlock_Tap

        private void MessageTextBlock_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            SmsComposeTask smsComposeTask = new SmsComposeTask();

            smsComposeTask.Body = shareText;

            smsComposeTask.Show();
        }
开发者ID:CodeObsessed,项目名称:drumbleapp,代码行数:8,代码来源:Share.xaml.cs


示例19: msg_Click

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


示例20: ShareText

        public void ShareText(string text)
        {
            var smsComposeTask = new SmsComposeTask
            {
                Body = text
            };

            smsComposeTask.Show();
        }
开发者ID:patridge,项目名称:Xamarin.Forms.Plugins,代码行数:9,代码来源:PhoneService.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# SmtpClient类代码示例发布时间:2022-05-24
下一篇:
C# SmoothingMode类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap