예제 #1
0
        /// <summary>
        /// Start the IR Server plugin.
        /// </summary>
        public override void Start()
        {
            LoadSettings();

            _irRemoteWrapper = new IrRemoteWrapper();
            _irRemoteWrapper.ButtonCallback = ButtonCallback;

            if (_stopIrExe)
            {
                _irRemoteWrapper.StopIrExe();
            }

            _irRemoteWrapper.Start();
        }
예제 #2
0
 /// <summary>
 /// Detect the presence of this device.
 /// </summary>
 public override DetectionResult Detect()
 {
     try
     {
         _irRemoteWrapper = new IrRemoteWrapper();
         return(DetectionResult.DevicePresent);
     }
     catch (DirectoryNotFoundException)
     {
         IrssLog.Warn("{0,15}: IrRemote.dll not found", Name);
         return(DetectionResult.DeviceNotFound);
     }
     catch (Exception ex)
     {
         IrssLog.Error("{0,15}: exception {1} type: {2}", Name, ex.Message, ex.GetType());
         return(DetectionResult.DeviceException);
     }
 }
예제 #3
0
    /// <summary>
    /// Start the IR Server plugin.
    /// </summary>
    public override void Start()
    {
      LoadSettings();

      _irRemoteWrapper = new IrRemoteWrapper();
      _irRemoteWrapper.ButtonCallback = ButtonCallback;

      if (_stopIrExe)
        _irRemoteWrapper.StopIrExe();

      _irRemoteWrapper.Start();
    }
예제 #4
0
 /// <summary>
 /// Detect the presence of this device.
 /// </summary>
 public override DetectionResult Detect()
 {
   try
   {
     _irRemoteWrapper = new IrRemoteWrapper();
     return DetectionResult.DevicePresent;
   }
   catch (DirectoryNotFoundException)
   {
     IrssLog.Warn("{0,15}: IrRemote.dll not found", Name);
     return DetectionResult.DeviceNotFound;
   }
   catch (Exception ex)
   {
     IrssLog.Error("{0,15}: exception {1} type: {2}", Name, ex.Message, ex.GetType());
     return DetectionResult.DeviceException;
   }
 }