Пример #1
0
        private async void AnotherPlayerDisconnected()
        {
            if (lanGameSession.IsGameStarted)
            {
                MessageBox.Show("К сожалению, другой игрок покинул игру :(", "Игра завершена", MessageBoxButton.OK, MessageBoxImage.Information);
            }
            PrepareForNewGame();
            lanGameLobbyControl.ShowMainMenu();
            await lanGameSession.DisconnectAsync();

            lanGameSession      = null;
            lanGameLobbyControl = null;
        }