Пример #1
0
        private void Init()
        {
            RzResult result = this._init();

            if (result != RzResult.Success)
            {
                throw RazerApiException.Create(result, "Init");
            }
        }
Пример #2
0
        public void UnregisterEventNotification()
        {
            RzResult result = this._unregisterEventNotification();

            if (result != RzResult.Success)
            {
                throw RazerApiException.Create(result, "UnregisterEventNotification");
            }
        }
Пример #3
0
        public void RegisterEventNotification(IntPtr windowHandle)
        {
            RzResult result = this._registerEventNotification(windowHandle);

            if (result != RzResult.Success)
            {
                throw RazerApiException.Create(result, "RegisterEventNotification");
            }
        }
Пример #4
0
        internal void DeleteEffect(Guid EffectId)
        {
            RzResult result = this._deleteEffect(EffectId);

            if (result != RzResult.Success)
            {
                throw RazerApiException.Create(result, "DeleteEffect");
            }
        }
Пример #5
0
        public ChromaSDK.DeviceInfoType QueryDevice(Guid DeviceId)
        {
            RzResult result = this._quertyDevice(DeviceId, out ChromaSDK.DeviceInfoType returnValue);

            if (result != RzResult.Success)
            {
                throw RazerApiException.Create(result, "QueryDevice");
            }
            return(returnValue);
        }
Пример #6
0
 private void UnInit()
 {
     if (!IsDisposed)
     {
         IsDisposed = true;
         RzResult result = this._unInit();
         if (result != RzResult.Success)
         {
             throw RazerApiException.Create(result, "Init");
         }
     }
 }
Пример #7
0
 public Effect CreateHeadSetEffect(HeadSet.Effects.Static effect)
 {
     RzResult result = this._createHeadSetEffect2(HeadSet.Definitions.EffectType.Static, ref effect, out Guid effectId); return((result == RzResult.Success) ? new Effect(this, effectId) : throw RazerApiException.Create(result, "CreateHeadSetEffect"));
 }
Пример #8
0
 public Effect CreateChromaLinkEffect(ChromaLink.Effects.Static effect)
 {
     RzResult result = this._createChromaLinkEffect1(ChromaLink.Definitions.EffectType.CHROMA_STATIC, ref effect, out Guid effectId); return((result == RzResult.Success) ? new Effect(this, effectId) : throw RazerApiException.Create(result, "CreateChromaLinkEffect"));
 }
Пример #9
0
 public Effect CreateKeypadEffect(KeyPad.Effects.Wave effect)
 {
     RzResult result = this._createKeyPadEffect4(KeyPad.Definitions.EffectType.Wave, ref effect, out Guid effectId); return((result == RzResult.Success) ? new Effect(this, effectId) : throw RazerApiException.Create(result, "CreateKeypadEffect"));
 }
Пример #10
0
 public Effect CreateMousepadEffect(MousePad.Effects.Custom effect)
 {
     RzResult result = this._createMousePadEffect1(MousePad.Definitions.EffectType.Custom, ref effect, out Guid effectId); return((result == RzResult.Success) ? new Effect(this, effectId) : throw RazerApiException.Create(result, "CreateMousepadEffect"));
 }
Пример #11
0
 public Effect CreateMouseEffect(Mouse.Effects.Spectrumcycling effect)
 {
     RzResult result = this._createMouseEffect6(Mouse.Definitions.EffectType.Spectrumcycling, ref effect, out Guid effectId); return((result == RzResult.Success) ? new Effect(this, effectId) : throw RazerApiException.Create(result, "CreateMouseEffect"));
 }
Пример #12
0
 public Effect CreateKeyboardEffect(Keyboard.Effects.StarLight effect)
 {
     RzResult result = this._createKeyboardEffect4(Keyboard.Definitions.EffectType.Invalid, ref effect, out Guid effectId); return((result == RzResult.Success) ? new Effect(this, effectId) : throw RazerApiException.Create(result, "CreateKeyboardEffect"));
 }
Пример #13
0
 public Effect CreateKeyboardEffect(Keyboard.Effects.CustomKey effect)
 {
     RzResult result = this._createKeyboardEffect2(Keyboard.Definitions.EffectType.Custom_key, ref effect, out Guid effectId); return((result == RzResult.Success) ? new Effect(this, effectId) : throw RazerApiException.Create(result, "CreateKeyboardEffect"));
 }
Пример #14
0
 public Effect CreateEffect(Guid deviceId, ChromaSDK.Effects.Wave effect)
 {
     RzResult result = this._createEffect8(deviceId, ChromaSDK.Definitions.EffectType.Wave, ref effect, out Guid effectId); return((result == RzResult.Success) ? new Effect(this, effectId) : throw RazerApiException.Create(result, "CreateEffect"));
 }