private void SendCommentExecute() { var post = new HttpRequestPost(); try { ValidateKey.GetValideKey(); var test = post.SendComment(TextComment, TheAlbum, null, Singleton.Singleton.Instance().SecureKey, Singleton.Singleton.Instance().CurrentUser); test.ContinueWith(delegate(Task<string> tmp) { var res = tmp.Result; if (res != null) { CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, LoadComment); } }); } catch (Exception) { new MessageDialog("Erreur lors du post").ShowAsync(); } }