示例#1
0
 private void ChangeRelation2AllFirends(long uid, BuddyRelation.BR relation)
 {
     for (int i = 0; i < this.AllFriends.get_Count(); i++)
     {
         BuddyInfo buddyInfo = this.AllFriends.get_Item(i);
         if (buddyInfo.id == uid)
         {
             buddyInfo.relation = relation;
             break;
         }
     }
 }
示例#2
0
 private void Update2AllFriends(BuddyInfo buddyInfo)
 {
     for (int i = 0; i < this.AllFriends.get_Count(); i++)
     {
         if (this.AllFriends.get_Item(i).id == buddyInfo.id)
         {
             BuddyRelation.BR relation = this.AllFriends.get_Item(i).relation;
             this.AllFriends.set_Item(i, buddyInfo);
             this.AllFriends.get_Item(i).relation = relation;
         }
     }
 }