Created
August 8, 2013 18:15
-
-
Save Neferetheka/6187169 to your computer and use it in GitHub Desktop.
TaskHelper for Windows Phone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Net; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Documents; | |
using System.Windows.Ink; | |
using System.Windows.Input; | |
using System.Windows.Media; | |
using System.Windows.Media.Animation; | |
using System.Windows.Shapes; | |
using Microsoft.Phone.Tasks; | |
namespace Tools | |
{ | |
public abstract class TaskHelper | |
{ | |
/// <summary> | |
/// Launch a share task | |
/// </summary> | |
/// <param name="message">Message to share</param> | |
public static void ShareTask(string message) | |
{ | |
ShareStatusTask shareTask = new ShareStatusTask(); | |
shareTask.Status = message + " - via My app"; | |
shareTask.Show();} | |
public static void MailTask(string destinataire, string sujet) | |
{ | |
var emailComposeTask = new EmailComposeTask | |
{ | |
To = destinataire, | |
Subject = sujet | |
}; | |
emailComposeTask.Show(); | |
} | |
public static void MarketPlaceMarkTask() | |
{ | |
MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask(); | |
marketplaceReviewTask.Show(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment