Beispiel #1
0
 public void Start(string ip, int port)
 {
     Stop();
     _connection = new CCTVConnection(ip, port);
     _connection.MessageEvent += onMessage;
     _connection.Start();
 }
Beispiel #2
0
 public void Stop()
 {
     Clear();
     if (_connection != null)
     {
         _connection.MessageEvent -= onMessage;
         _connection.Stop();
     }
     _connection = null;
 }