private void ProfileView(object obj) { XboxProfile Profile = XboxConnection.GetProfile(Friends.ElementAt(SelectedFriendIndex).Gamertag); ProfileViewerView v = new ProfileViewerView(Profile); v.Show(); }
public FriendsListView() { InitializeComponent(); (DataContext as FriendsListViewModel).Gamertag = XboxConnection.GetProfile().Gamertag; (DataContext as FriendsListViewModel).xuid = XboxConnection.GetProfile().ID.ToString(); (DataContext as FriendsListViewModel).Friends = new List <Friend>(XboxConnection.GetFriends()); }
public ProfileViewerView(string Gamertag) { InitializeComponent(); (DataContext as ProfileViewerViewModel).Profile = XboxConnection.GetProfile(Gamertag); }