Пример #1
0
 public FriendCollection GetFriends()
 {
     if (this.IsSignedInToLive && this.friendCollection == null)
     {
         this.friendCollection = new FriendCollection();
     }
     return(this.friendCollection);
 }
Пример #2
0
        public FriendCollection GetFriends()
        {
            if (friendCollection == null)
            {
                friendCollection = new FriendCollection();
            }

            return(friendCollection);
        }
Пример #3
0
        public FriendCollection GetFriends()
        {
            if (IsSignedInToLive)
            {
                if (friendCollection == null)
                {
                    friendCollection = new FriendCollection();
                }
            }

            return(friendCollection);
        }
Пример #4
0
        public FriendCollection GetFriends()
        {
            if (IsSignedInToLive)
            {
                if (friendCollection == null)
                {
                    friendCollection = new FriendCollection();
                }

                lp.LoadFriends(delegate(string[] FriendsList, NSError error)
                {
                    foreach (string Friend in FriendsList)
                    {
                        friendCollection.Add(new FriendGamer()
                        {
                            Gamertag = Friend
                        });
                    }
                });
            }

            return(friendCollection);
        }