Example #1
0
 public void StartClientClick()
 {
     _netClient.Dispose();
     _netClient = new NetClient(_IP, _Port);
     _netClient.Connect();
     _backgroundHelper.Start();
     RaisePropertyChanged("Connection");
 }
Example #2
0
 public void GetConnection()
 {
     if (_TCPServer != null)
     {
         _TCPServer.Dispose();
         _TCPServer = new TCPServer(_Ip, _Port);
         _TCPServer.StartServer();
         _BackgroundHelper.Start();
     }
     RaisePropertyChanged("IsConnectedProperty");
 }