private void ConnectionRemoteConsole() { client = ConnectSocket(); ExecuteViewModel.SetClient(client); HomeViewModel.SetClient(client); ListenNetwork(client); //Disconnect(client); }
public ViewModel() { Thread thread = new Thread(new ThreadStart(ConnectionRemoteConsole)); thread.Start(); HomeViewModel = new HomeViewModel(client); ExecuteViewModel = new ExecuteViewModel(client); ParametersViewModel = new ParametersViewModel(); }