Exemplo n.º 1
0
        public void GetValueAsString(ZWValueID valueId, out string ovalue)
        {
            IntPtr ptr;

            NativeWrapper.GetValueAsString(valueId.IntPtr, out ptr);
            ovalue = Helper.ToString(ptr);
        }
Exemplo n.º 2
0
        public bool GetValueListSelection(ZWValueID valueId, out string selected)
        {
            IntPtr value;
            bool   result = NativeWrapper.GetValueListSelectionFromString(valueId.IntPtr, out value);

            selected = Helper.ToString(value);
            return(result);
        }
Exemplo n.º 3
0
        internal ZWNotification(IntPtr notification)
        {
            NotificationType = (Type)NativeWrapper.GetNotificationType(notification);
            NodeId           = NativeWrapper.GetNotificationNodeId(notification);
            HomeId           = NativeWrapper.GetNotificationHomeId(notification);
            ZWValueID        = new ZWValueID(NativeWrapper.GetNotificationValueID(notification));
            Byte             = NativeWrapper.GetNotificationByte(notification);
            NotificationCode = (Code)Byte;

            if (NotificationType == Type.ControllerCommand)
            {
                Event = NativeWrapper.GetNotificationEvent(notification);
            }
        }
Exemplo n.º 4
0
        public void GetValueListItems(ZWValueID valueId, out string[] ovalue)
        {
            int    count = 0;
            IntPtr items = IntPtr.Zero;

            if (NativeWrapper.GetValueListItems(valueId.IntPtr, out items, ref count))
            {
                ovalue = Helper.MarshalUnmananagedStrArray2ManagedStrArray(items, count);
            }
            else
            {
                ovalue = new string[0];
            }
        }
Exemplo n.º 5
0
 public void SetValue(ZWValueID valueId, float value)
 {
     NativeWrapper.SetValueFromFloat(valueId.IntPtr, value);
 }
Exemplo n.º 6
0
 public void SetValue(ZWValueID valueId, bool value)
 {
     NativeWrapper.SetValueFromBool(valueId.IntPtr, value);
 }
Exemplo n.º 7
0
 public void SetValue(ZWValueID valueId, int value)
 {
     NativeWrapper.SetValueFromInt(valueId.IntPtr, value);
 }
Exemplo n.º 8
0
 public void GetValueAsShort(ZWValueID valueId, out short ovalue)
 {
     NativeWrapper.GetValueAsShort(valueId.IntPtr, out ovalue);
 }
Exemplo n.º 9
0
 public void GetValueAsFloat(ZWValueID valueId, out float ovalue)
 {
     NativeWrapper.GetValueAsFloat(valueId.IntPtr, out ovalue);
 }
Exemplo n.º 10
0
 public void GetValueAsInt(ZWValueID valueId, out int ovalue)
 {
     NativeWrapper.GetValueAsInt(valueId.IntPtr, out ovalue);
 }
Exemplo n.º 11
0
 public void GetValueAsBool(ZWValueID valueId, out bool ovalue)
 {
     NativeWrapper.GetValueAsBool(valueId.IntPtr, out ovalue);
 }
Exemplo n.º 12
0
 public void GetValueAsByte(ZWValueID valueId, out byte ovalue)
 {
     NativeWrapper.GetValueAsByte(valueId.IntPtr, out ovalue);
 }
Exemplo n.º 13
0
 public bool IsPolled(ZWValueID valueId)
 {
     return(NativeWrapper.isPolled(valueId.IntPtr));
 }
Exemplo n.º 14
0
 public void SetValue(ZWValueID valueId, byte value)
 {
     NativeWrapper.SetValueFromByte(valueId.IntPtr, value);
 }
Exemplo n.º 15
0
 public int GetValueMax(ZWValueID valueId)
 {
     return(NativeWrapper.GetValueMax(valueId.IntPtr));
 }
Exemplo n.º 16
0
 public bool IsValueWriteOnly(ZWValueID valueId)
 {
     return(NativeWrapper.IsValueWriteOnly(valueId.IntPtr));
 }
Exemplo n.º 17
0
 public string GetValueUnits(ZWValueID valueId)
 {
     return(Helper.ToString(NativeWrapper.GetValueUnits(valueId.IntPtr)));
 }
Exemplo n.º 18
0
 public void SetValueListSelection(ZWValueID valueId, string value)
 {
     NativeWrapper.SetValueListSelection(valueId.IntPtr, value);
 }
Exemplo n.º 19
0
 public void SetValue(ZWValueID valueId, string value)
 {
     NativeWrapper.SetValueFromString(valueId.IntPtr, value);
 }