예제 #1
0
 private void SendFeedBack()
 {
     if (Email != null && ItemChoose != "Selectionner une categorie" && Object != null && Comment != null)
     {
         var post = new HttpRequestPost();
         var res = post.Feedback(Email, ItemChoose, Object, Comment);
         res.ContinueWith(delegate(Task<string> tmp2)
         {
             var result = tmp2.Result;
             if (result != null)
             {
                 CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal,
                     AgileCallback);
             }
         });
     }
     else
     {
         var loader = new ResourceLoader();
         new MessageDialog(loader.GetString("ErrorAbout")).ShowAsync();
     }
 }