Пример #1
0
        public ConnectionViewModel()
        {
            LoginViewModel      = new LoginViewModel();
            ServerListViewModel = new ServerListViewModel();

            ClientChanged += OnClientChanged;

            Mediator.Register <ServerSelectedMessage>(this, OnServerSelected);
        }
Пример #2
0
        private void AddServerToLatest()
        {
            string serverAddress = LoginViewModel.ServerCompletePlayerAddress;

            ServerListViewModel.AddServerToLatest(serverAddress);
        }