Exemple #1
0
 public override void Init()
 {
     remote = new REMOTESERVICELib.Remote();
     remote.InitialQuick();
     uint c;
     remote.GetDeviceNum(out c);
     if (c > 0)
     {
         REMOTESERVICELib.tagHWINFO hwInfo;
         remote.EnumDeviceInfo(0, out hwInfo);
         remote.SetRemoteIsEnable(0, hwInfo.lEnumRemoteID, true);
         //Name = hwInfo.szDeviceName;
         remote.OnRemoteData += new _IRemoteEvents_OnRemoteDataEventHandler(remote_OnRemoteData);
     }
 }