public FriendsForm OpenFriendsForm() { FriendsForm friendsForm = new FriendsForm(); openForm(friendsForm); new Thread(() => { // Load friends: Collection <User> friends = LoggedInUser.Friends; // Invoke UI thread to show the friends friendsForm.Invoke(new Action(() => friendsForm.Friends = friends)); }).Start(); return(friendsForm); }
public override void Open(INavigator i_Navigator) { FriendsForm friendsForm = i_Navigator.OpenFriendsForm(); friendsForm.InitialSelectedFriend = Friend; }