示例#1
0
 public MainWindow()
 {
     InitializeComponent();
     playerDCViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("playerDCViewSource")));
     FriendshipRequestsViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("playerDCViewSource1")));
     ConversationsListViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("playerDCViewSource2")));
     _contentFrame.Content = new WellcomePage();
     friendPage = new FriendPage(this);
     addFriendsPage = new AddFriendPage(this);
     partyPage = new ConversationPage(this);
     allowSelection = true;
     NotifyConnexion = true;
     MicEnabled = true;
     LoudSpeakerEnabled = true;
     friendshipRequests = new List<PlayerDC>();
     conversations = new List<ConversationDC>();
 }
示例#2
0
 public void ReceiveSearchFriendsResult(IEnumerable<PlayerDC> players)
 {
     var potentialFriends = players.ToList<PlayerDC>();
     addFriendsPage = new AddFriendPage(this, potentialFriends);
     _contentFrame.Content = addFriendsPage;
 }