Exemplo n.º 1
0
 public void UserSearchCompleted(SearchedUsersEventArgs args)
   {
       SearchedUsersComplete(this, args);
   }
Exemplo n.º 2
0
        void PeopleService_SearchPrincipalsCompleted(object sender, SearchPrincipalsCompletedEventArgs e)
        {
            if (SearchedUsersComplete == null) return;
            var args = new SearchedUsersEventArgs { Users = new List<UserInfo>() };
            foreach (PrincipalInfo p in e.Result)
            {
                var u = new UserInfo
                {
                    AccountName = p.AccountName,
                    Title = p.Title,
                    Department = p.Department,
                    DisplayName = p.DisplayName,
                    Email = p.Email,
                    UserID = p.UserInfoID
                };

                args.Users.Add(u);
            }

            SearchedUsersComplete(this, args);

        }