Пример #1
0
        public LobbyViewModel(string login)
        {
            _login             = login;
            Window             = new LobbyWindow();
            Window.DataContext = this;

            clientLogic = new ClientLogic();
            clientLogic.EstablishConnection(_login);

            clientLogic.Client.OnReceiveMessageEvent += ReceivedMessageFromClient;

            GameTypes = ((GameType[])Enum.GetValues(typeof(GameType))).ToList();
        }