예제 #1
0
        private static object MergeWithFriend(object profile, object friend)
        {
            ProfileCardData profileCardData = ProfileCardData.Create(profile, friend);

            if (friend != null)
            {
                profileCardData.IsFriend = true;
            }
            return(profileCardData);
        }
예제 #2
0
        public int GetIndexFromZuneTag(string tagToFind)
        {
            int num1 = -1;
            int num2 = 0;

            if (this.Content != null && !string.IsNullOrEmpty(tagToFind))
            {
                foreach (object data in Content)
                {
                    if (ProfileCardData.GetDataProviderObject(data) is DataProviderObject dataProviderObject && SignIn.TagsMatch(dataProviderObject.GetProperty("ZuneTag") as string, tagToFind))
                    {
                        num1 = num2;
                        break;
                    }
                    ++num2;
                }
            }
            return(num1);
        }
예제 #3
0
 public static object MergeProfile(object item1, object item2) => ProfileCardData.Create(item1, item2);