コード例 #1
0
        // Accept or decline an invitation
        private void inviteResponse(bool accept, InviteControl sender)
        {
            listInvitations.Children.Remove(sender);

            if (accept)
            {
                if (LobbyProxy.AnswerInvite(sender.InviteSenderName))
                {
                    showPartyWindow(sender.InviteSenderName);
                }
                else
                {
                    //TODO Rework into the UI
                    MessageBox.Show("Could not join party");
                }
            }
        }