예제 #1
0
 private void buttonPost_Click(object sender, EventArgs e)
 {
     BusinessLayer2.ProcessPostData(13, (posts) => {
         foreach (var post in posts)
         {
             UpdateUI(post);
             Task.Delay(1000).Wait();
         }
     });
 }
예제 #2
0
 private void buttonUser_Click(object sender, EventArgs e)
 {
     BusinessLayer2.ProcessUserData(13, (users) => {
         foreach (var user in users)
         {
             UpdateUI(user);
             Task.Delay(800).Wait();
         }
     });
 }