Example #1
0
        private void tcpClientDisconnected(object sender, TCPConnectFailureEventArgs e)
        {
            TCPconnected = e.TCPconnected;
            TestAbortedEventArgs args = new TestAbortedEventArgs(true);

            TestAborted(this, args);
        }
Example #2
0
 public void Connect()
 {
     try
     {
         client       = new TcpClient(Properties.Settings.Default.savedIPAddress, Int32.Parse(Properties.Settings.Default.savedPort));
         TCPconnected = true;
     }
     catch (Exception ex)
     {
         TCPconnected = false;
         MessageBox.Show("TCP Connection failed - Run SIMPATI and Simserv.exe!");
         TCPConnectFailureEventArgs args = new TCPConnectFailureEventArgs(TCPconnected);
         TCPConnectionFailure(this, args);
     }
 }