コード例 #1
0
 public override void Disconnect()
 {
     try
     {
         if (communicator != null)
         {
             communicator.Disconnect();
             communicator = null;
         }
     }
     catch { }
 }
コード例 #2
0
        public override void TryConnection()
        {
            try
            {
                if (communicator == null)
                {
                    communicator = new ECGCommunicator();
                }

                if (communicator != null)
                {
                    communicator.Connect();
                }
            }
            catch { }
        }