示例#1
0
 private void ResolveNames()
 {
     traceForm.ShowLoadingPanel(true);
     WorkAsync(new WorkAsyncInfo
     {
         Message = @"Retrieving users...",
         Work    = (bw, e) =>
         {
             var users = GetUsers();
             traceForm.ApplyUsers(users);
             filterForm.ApplyUsers(users);
         },
         PostWorkCallBack = e =>
         {
             traceForm.ShowLoadingPanel(false);
         }
     });
 }