예제 #1
0
 private void SendCommandExecute()
 {
     var post = new HttpRequestPost();
     ValidateKey.GetValideKey();
     if (ConversationText != null)
     {
         var res = post.SaveMessage(ConversationText, FriendUser.id.ToString(),
             Singleton.Singleton.Instance().SecureKey,
             Singleton.Singleton.Instance().CurrentUser);
         res.ContinueWith(delegate(Task<string> tmp)
         {
             var res2 = tmp.Result;
             if (res2 != null)
             {
                 CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal,
                     Charge);
             }
         });
     }
 }