Example #1
0
        private void ConnectionRemoteConsole()
        {
            client = ConnectSocket();
            ExecuteViewModel.SetClient(client);
            HomeViewModel.SetClient(client);

            ListenNetwork(client);
            //Disconnect(client);
        }
Example #2
0
        public ViewModel()
        {
            Thread thread = new Thread(new ThreadStart(ConnectionRemoteConsole));

            thread.Start();

            HomeViewModel       = new HomeViewModel(client);
            ExecuteViewModel    = new ExecuteViewModel(client);
            ParametersViewModel = new ParametersViewModel();
        }