예제 #1
0
        private async Task AcceptChallenge()
        {
            if (!Validate())
            {
                // Requires validation because of AI.
                return;
            }
            IGame game = await Bundle.AcceptChallenge(this);

            if (game != null)
            {
                Mvx.RegisterSingleton <IGame>(game);
                OpenInNewActiveTab <OnlineGameViewModel>();
            }
            this.CloseSelf();
        }