private void initOptionalFriendsForRelationshipListBox() { listBoxOptionalForRelationship.Invoke(new Action(() => listBoxOptionalForRelationship.Items.Clear())); listBoxOptionalForRelationship.Invoke(new Action(() => listBoxOptionalForRelationship.DisplayMember = "Name")); FindRelationshipLogic findRelationshipLogic = m_facebookManager.FacadeRelationship(); User[] optionalFriendsForRelationList = findRelationshipLogic.FindOptionalFriendsForRelationship(); if (findRelationshipLogic.IsNotEmpty()) { foreach (User friend in optionalFriendsForRelationList) { listBoxOptionalForRelationship.Invoke(new Action(() => listBoxOptionalForRelationship.Items.Add(friend))); } } }
public FindRelationshipLogic FacadeRelationship() { FindRelationshipLogic findRelationshipLogic = new FindRelationshipLogic(m_LoggedInUser); return(findRelationshipLogic); }