Exemple #1
0
        void svc_GetUserColleaguesCompleted(object sender, GetUserColleaguesCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                Deployment.Current.Dispatcher.BeginInvoke(() =>
                {
                    Colleagues.Clear();

                    foreach (ContactData contactData in e.Result.ToList())
                    {
                        Colleagues.Add(new ColleagueViewModel()
                        {
                            AccountName = contactData.AccountName,
                            FullName    = contactData.Name,
                            Title       = contactData.Title,
                            EMail       = contactData.Email,
                            PersonalUrl = contactData.Url
                        });
                    }
                });

                Debug.WriteLine("Colleagues: {0}", Colleagues.Count);
            }
            else
            {
                Debug.WriteLine("Error: {0}", e.Error.Message);
            }
        }
Exemple #2
0
 void svc_GetUserColleaguesCompleted(object sender, GetUserColleaguesCompletedEventArgs e)
 {
     //TODO Complete the svc_GetUserColleaguesCompleted Method
 }