/// <summary> /// Updates the device to use the effect pointed to by the specified GUID. /// </summary> /// <param name="guid">GUID to set.</param> public void SetGuid(Guid guid) { if (CurrentEffectId != Guid.Empty) { NativeWrapper.DeleteEffect(CurrentEffectId); CurrentEffectId = Guid.Empty; } NativeWrapper.SetEffect(guid); CurrentEffectId = guid; }
/// <summary> /// Updates the device to use the effect pointed to by the specified GUID. /// </summary> /// <param name="guid">GUID to set.</param> public void SetGuid(Guid guid) { DeleteCurrentEffect(); NativeWrapper.SetEffect(guid); CurrentEffectId = guid; }
/// <summary> /// Updates the device to use the effect pointed to by the specified GUID. /// </summary> /// <param name="guid">GUID to set.</param> public void Set(Guid guid) { Clear(); NativeWrapper.SetEffect(guid); CurrentEffectId = guid; }