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


C# EmailComposeTask.Show方法代码示例

本文整理汇总了C#中EmailComposeTask.Show方法的典型用法代码示例。如果您正苦于以下问题:C# EmailComposeTask.Show方法的具体用法?C# EmailComposeTask.Show怎么用?C# EmailComposeTask.Show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在EmailComposeTask的用法示例。


在下文中一共展示了EmailComposeTask.Show方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: submitReturnBtn_Click

        private void submitReturnBtn_Click(object sender, RoutedEventArgs e)
        {
            EmailComposeTask emailTask = new EmailComposeTask();
            int index = 0;
            string Output = "Transaction ID: " + App.transactionID;
            App.transactionID++;
            Output += "\nTransaction type: Return " + "\n\n";

            Output += "Item returned: ";
            var returnedProduct =  App.ViewModel.InventoryDB.Inventory.FirstOrDefault(s => s.title == App.ViewModel.SelectedProduct.title);
            foreach (Product product in App.Cart)
            {
                if (product.title == returnedProduct.title)
                    break;

                index++;
            }
            quantity = Convert.ToInt32(quantityTxtBox.Text);
            if (returnedProduct != null)
            {
                Output += returnedProduct.title + "\n\tPrice refunded: $" + String.Format("{0:N2}", returnedProduct.price.ToString()) + "\n\tQuantity: " + quantity;
                returnedProduct.quantity += quantity;
                App.ViewModel.SaveChangesToDB();
            }

            Output += "\n\nThank you for your business with WSUASTIS!";
            emailTask.Subject = "Your WSUASTIS return transaction has been processed.";
            emailTask.Body = Output;
            emailTask.Show();
        }
开发者ID:griffinfujioka,项目名称:WSUASTIS,代码行数:30,代码来源:ReturnPage.xaml.cs

示例2: email_Click

 private void email_Click(object sender, EventArgs e)
 {
     EmailComposeTask task = new EmailComposeTask();
     task.Subject = "Have you checked this WP App: XEP Reader??";
     task.Body = "Hey check out this great WP App named XEP Reader. You can find it on http://www.windowsphone.com/s?appid=6452cf16-c10d-4f2f-9412-0ecc320b6a61";
     task.Show();
 }
开发者ID:bhargavgolla,项目名称:WindowsPhoneApps,代码行数:7,代码来源:MainPage.xaml.cs

示例3: btn_Feedback_Click

 private void btn_Feedback_Click(object sender, EventArgs e)
 {
     EmailComposeTask emailComposeTask = new EmailComposeTask();//标题
     emailComposeTask.Subject = "拼图意见反馈(JigsawPuzzle Feedback) ";
     emailComposeTask.To = "[email protected]";//收件人
     emailComposeTask.Show();
 }
开发者ID:GhostSoar,项目名称:JigsawPuzzle,代码行数:7,代码来源:StartPage.xaml.cs

示例4: Email_Click

 private void Email_Click(object sender, RoutedEventArgs e)
 {
     EmailComposeTask emailTask = new EmailComposeTask();
     emailTask.Subject = "XBMC Assist for Windows Phone";
     emailTask.To = "[email protected]";
     emailTask.Show();
 }
开发者ID:wtoscer,项目名称:XBMCRemoteWP,代码行数:7,代码来源:AboutPage.xaml.cs

示例5: advice

        private void advice() {
            EmailComposeTask task = new EmailComposeTask();
            task.To = MY_EMAIL_ADDRESS;
            task.Subject = EMAIL_SUBJECT;

            task.Show();
        }
开发者ID:lintghi,项目名称:puzzle,代码行数:7,代码来源:SettingAndAboutPage.xaml.cs

示例6: Email_Click

 private void Email_Click(object sender, RoutedEventArgs e)
 {
     EmailComposeTask email = new EmailComposeTask();
     email.Subject = "WP: Chicago Code Camp";
     email.To = "[email protected]";
     email.Show();
 }
开发者ID:paaschpa,项目名称:ChicagoCodeCamp,代码行数:7,代码来源:About.xaml.cs

示例7: ApplicationBarLogsButtonClicked

        private void ApplicationBarLogsButtonClicked(object sender, EventArgs e)
        {
            // TODO : Move this to a proper command !
            ILogService logService = IoC.Container.Get<ILogService>();

            // TODO : Move this to a notification service
            MessageBox.Show("Logging is not enabled. There are no log files available", "Logs disabled", MessageBoxButton.OK);
            if (logService.IsEnabled)
            {
                // TODO : Move this to a notification service
                string logFile = logService.GetLogFile();
                logService.ClearLog();

                EmailComposeTask emailComposeTask = new EmailComposeTask();
                emailComposeTask.To = "[email protected]";

                if (logFile.Length > 50000)
                {
                    const string truncateDisclaimer = "This logfile has been truncated : only the last 64kbytes are shown.\r\n";
                    emailComposeTask.Body = truncateDisclaimer + logFile.Substring(logFile.Length - 32000 + truncateDisclaimer.Length);
                }
                else
                {
                    emailComposeTask.Body = logFile;
                }

                emailComposeTask.Subject = "Log file";
                emailComposeTask.Show();

                //var result = MessageBox.Show(logFile, "Click Cancel to clear logs", MessageBoxButton.OKCancel);
                //if (result == MessageBoxResult.Cancel)

            }
        }
开发者ID:salfab,项目名称:open-syno,代码行数:34,代码来源:LoginView.xaml.cs

示例8: Execute

 public void Execute(object parameter)
 {
     var email = new EmailComposeTask();
     email.To = "[email protected]";
     email.Subject = "My App: Feedback";
     email.Show();
 }
开发者ID:shanecharles,项目名称:BurnAdControl,代码行数:7,代码来源:SendFeedbackCommand.cs

示例9: Email_Click

 private void Email_Click(object sender, EventArgs e)
 {
     EmailComposeTask email = new EmailComposeTask();
     email.Subject = "豆米 v1.2.0.0 Feedback";
     email.To = "[email protected]";
     email.Show();
 }
开发者ID:gzb1985,项目名称:doumi,代码行数:7,代码来源:About.xaml.cs

示例10: HyperlinkButton1Click

 private void HyperlinkButton1Click(object sender, RoutedEventArgs e)
 {
     EmailComposeTask supportemail = new EmailComposeTask();
     supportemail.To = "[email protected]";
     supportemail.Subject = "Support question about Static Position Size Calculator";
     supportemail.Show();
 }
开发者ID:AdamBenoit,项目名称:WindowsPhoneApps,代码行数:7,代码来源:Help.xaml.cs

示例11: Contact_Click

 private void Contact_Click(object sender, RoutedEventArgs e)
 {
     EmailComposeTask task = new EmailComposeTask();
     task.Subject = string.Format("{0} {1}", AppResource.ResourceManager.GetString("ApplicationName"), AppResource.ResourceManager.GetString("FeedBack"));
     task.To = "[email protected]";
     task.Show();
 }
开发者ID:lduparc,项目名称:BeRider,代码行数:7,代码来源:About.xaml.cs

示例12: SendEmail

 private void SendEmail()
 {
     EmailComposeTask email = new EmailComposeTask();
     email.Subject = "Shopping Discount Calculator - Version " + VersionNumber.Text;
     email.To = "[email protected]";
     email.Show();
 }
开发者ID:eclipsed4utoo,项目名称:DiscountCalculator,代码行数:7,代码来源:About.xaml.cs

示例13: btnContract_Click

 private void btnContract_Click(object sender, RoutedEventArgs e)
 {
     EmailComposeTask ect = new EmailComposeTask();
     ect.To = "[email protected]";
     ect.Subject = " 7.11 FM 反馈";
     ect.Show();
 }
开发者ID:RaulVan,项目名称:publishRadio,代码行数:7,代码来源:PageAbout.xaml.cs

示例14: FeedbackButton_Click

 private void FeedbackButton_Click(object sender, EventArgs e)
 {
     var task = new EmailComposeTask();
     task.To = "[email protected]";
     task.Subject = "Torch Lite Feedback";
     task.Show();
 }
开发者ID:shaftware,项目名称:Torch,代码行数:7,代码来源:AboutPage.xaml.cs

示例15: 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


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