Created
February 8, 2014 05:54
-
-
Save eternaltung/8877236 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
private async void UpdateButton_Click(object sender, RoutedEventArgs e) | |
{ | |
try | |
{ | |
if (FolderBox.SelectedItem != null) | |
{ | |
Dictionary<string, object> updatefolder = new Dictionary<string, object>(); | |
updatefolder.Add("name", "updatefolder"); | |
//PutAsync中傳入要更新的資料夾ID | |
LiveOperationResult operationresult = await liveClient.PutAsync((FolderBox.SelectedItem as ListBoxItem).Tag.ToString(), updatefolder); | |
MessageDialog msg = new MessageDialog("Folder updated"); | |
await msg.ShowAsync(); | |
} | |
} | |
catch (LiveConnectException ex) | |
{ | |
MessageDialog msg = new MessageDialog(ex.Message); | |
msg.ShowAsync(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment