Ejemplo n.º 1
0
 public ClientViewModel()
 {
     _netClient = new NetClient(_IP, _Port);
     _CommandControler = new Commands();
     _backgroundHelper = new BackgroundConnectionHelper(new DoWorkEventHandler(OnCallBack), new RunWorkerCompletedEventHandler(UpdateGUI));
     _ConnectClick = new CommandAction(StartClientClick);
 }
Ejemplo n.º 2
0
 public ServerViewModel()
 {
     _TCPServer = new TCPServer(_Ip, _Port);
     _TryToStartServer = new CommandAction(GetConnection);
     _BackgroundHelper = new BackgroundConnectionHelper(
         new DoWorkEventHandler(AsyncOperations),
         new RunWorkerCompletedEventHandler(UpdateGUI));
     _Commands = new Commands();
 }