コード例 #1
0
 private void ClientRequestSucceeded(object sender, CLOM.ClientRequestSucceededEventArgs args)
 {
     this.Dispatcher.BeginInvoke(() =>
     {
         label2.Content = "Task '" + textBox1.Text + "' added for you!";
         textBox1.Text  = "";
     });
 }
コード例 #2
0
 private void onQuerySucceeded(object sender, CLOM.ClientRequestSucceededEventArgs args)
 {
     Deployment.Current.Dispatcher.BeginInvoke(() =>
     {
         foreach (var item in taskListItems)
         {
             Task task        = new Task();
             task.Title       = item["Title"].ToString();
             task.Description = item["Body"].ToString();
             task.DueDate     = DateTime.Parse(item["DueDate"].ToString());
             Tasks.Add(task);
         }
     });
 }