示例#1
0
 public void Disconnect()
 {
     try
     {
         if (RBA_API.GetConnectionStatus().Equals(CONNECTION_STATUS.CONNECTED))
         {
             Result = RBA_API.Disconnect().ToString();
             ingenicoDevice.DeviceConnectionEvent();
             Connected = ingenicoDevice.Connected;
             Debug.WriteLine("device disconnect: connected={0} --------------------------------------------------", Connected);
         }
     }
     catch (Exception)
     {
         //log error
         //if (ex.Source == "RBA_SDK_CS")
         //MessageBox.Show("Exception Occured during Disconnect:" + Environment.NewLine + ex.ToString() + Environment.NewLine + Environment.NewLine + "Suggested Resolution:" + Environment.NewLine + "For 32-bit machine: Add directory path for the dll to Environment variable PATH" + Environment.NewLine + "For 64-bit machine: Copy the dll to C:\\Windows\\SysWOW64");
     }
 }