Created
August 10, 2012 06:52
-
-
Save Tapanila/3311973 to your computer and use it in GitHub Desktop.
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.Windows; | |
using Microsoft.Phone.Controls; | |
using TapanilaBlogWP.ServiceReference1; | |
namespace TapanilaBlogWP | |
{ | |
public partial class MainPage : PhoneApplicationPage | |
{ | |
Service1Client client = new Service1Client(); | |
public MainPage() | |
{ | |
InitializeComponent(); | |
this.Loaded += new RoutedEventHandler(MainPage_Loaded); | |
} | |
void MainPage_Loaded(object sender, RoutedEventArgs e) | |
{ | |
client.SaveTextCompleted += client_SaveTextCompleted; | |
client.SaveTextAsync("Tapanila", "Links", "teemu"); | |
} | |
void client_SaveTextCompleted(object sender, SaveTextCompletedEventArgs e) | |
{ | |
MessageBox.Show(e.Result.ToString()); | |
client.RetrieveTextCompleted += textRetrieved; | |
client.RetrieveTextAsync("teemu", "Links"); | |
} | |
void textRetrieved(object sender, RetrieveTextCompletedEventArgs e) | |
{ | |
MessageBox.Show(e.Result); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment