public void ChangeFriendsList(MyFriends _l) { this.list = _l; friendsList.ItemsSource = this.list; friendsList.SelectedIndex = 0; }
public FriendsList() { this.list = new MyFriends(); InitializeComponent(); }