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