Exemplo n.º 1
0
        protected override void onInfoResponse(SWIGTYPE_p_XsDevice dev, XsInfoRequest request)
        {
            XsDevice device = new XsDevice(dev);

            if (request == XsInfoRequest.XIR_BatteryLevel)
            {
                int batteryLevel = device.batteryLevel();
                if (BatteryLevelChanged != null)
                {
                    BatteryLevelChanged(this, new BatteryLevelChangedArgs(device.deviceId(), batteryLevel));
                }
            }
        }