zoukankan      html  css  js  c++  java
  • wp7常用Task,启动器与选择器


    /// <summary>
    /// 发送短信Task
    /// </summary>
    /// <param name="number"></param>
    /// <param name="smsBody"></param>
    public static void SmsTask(string smsBody)
    {
    SmsComposeTask smsComseTask = new SmsComposeTask()
    {
    Body = smsBody
    };
    smsComseTask.Show();
    }
    /// <summary>
    /// 发送短信Task
    /// </summary>
    /// <param name="number"></param>
    /// <param name="smsBody"></param>
    public static void SmsTask(string number,string smsBody)
    {
    SmsComposeTask smsComseTask = new SmsComposeTask()
    {
    To = number,
    Body = smsBody
    };
    smsComseTask.Show();
    }
    /// <summary>
    /// 发送邮件
    /// </summary>
    public static void EmailTask(string subject,string emailbody,string toSomeone)
    {
    EmailComposeTask emailComposeTask = new EmailComposeTask()
    {
    Subject = subject,
    Body = emailbody,
    To = toSomeone
    };
    emailComposeTask.Show();
    }
    /// <summary>
    /// 商城评价
    /// </summary>
    public static void MarketplaceReview()
    {
    MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask();
    marketplaceReviewTask.Show();
    }
    /// <summary>
    /// 应用详情
    /// </summary>
    /// <param name="productId"></param>
    public static void MarketplaceDetail(string productId)
    {
    MarketplaceDetailTask marketplaceDetailTask = new MarketplaceDetailTask();
    marketplaceDetailTask.ContentIdentifier = productId;
    marketplaceDetailTask.Show();
    }
    /// <summary>
    /// 浏览器
    /// </summary>
    /// <param name="url"></param>
    public static void WebBrowser(string url)
    {
    WebBrowserTask webBrowerTask = new WebBrowserTask();
    webBrowerTask.Uri = new Uri(url, UriKind.RelativeOrAbsolute);
    webBrowerTask.Show();
    }

  • 相关阅读:
    Win7系统安装Centos7.0双系统(二)
    vue动态加载图片失效
    vuex store更新了数据,但未触发getters
    js获取图片信息
    http请求204
    IOS 伪类:active失效
    js下载blob的形式
    URL的 ? 和 # (hash),如何将参数保存在URL中,用于刷新获取之前的变量?
    vue中修改数组,dom未更新的问题
    vue中使用qrcode,遇到两次渲染的问题
  • 原文地址:https://www.cnblogs.com/hanjun/p/2722136.html
Copyright © 2011-2022 走看看