예제 #1
0
        public static void SetUShortValues(this CrestronDeviceWithEvents device, IEnumerable <KeyValuePair <string, ushort> > values, bool repropagate)
        {
            var ii = device.UShortInput;

            foreach (var v in values)
            {
                ii.SetValue(v.Key, v.Value, repropagate);
            }
        }
        void cde_SigChange(CrestronDeviceWithEvents currentDevice, SigEventArgs args)
        {
            if (SigChange != null)
            {
                SigChange(this, new UnifiedSigEventArgs(args));
            }

            OnSigChange(args);
        }
예제 #3
0
        public static void SetStringValues(this CrestronDeviceWithEvents device, IEnumerable <KeyValuePair <string, string> > values, bool repropagate)
        {
            var si = device.StringInput;

            foreach (var v in values)
            {
                si.SetValue(v.Key, repropagate, v.Value);
            }
        }
예제 #4
0
 public static void SetFalse(this CrestronDeviceWithEvents device, string name)
 {
     device.BooleanInput[name].BoolValue = false;
 }
예제 #5
0
 public static void SetFalse(this CrestronDeviceWithEvents device, uint index)
 {
     device.BooleanInput[index].BoolValue = false;
 }
예제 #6
0
 public static void CreateRampWithEvent(this CrestronDeviceWithEvents device, string name, ushort finalRampValue, uint timeToRampIn10msIntervals, RampChangeHandler changeHandler)
 {
     CreateRampWithEvent(device.UShortInput, name, finalRampValue, timeToRampIn10msIntervals, changeHandler);
 }
예제 #7
0
 public static string GetStringInputValue(this CrestronDeviceWithEvents device, uint index)
 {
     return(device.StringInput[index].StringValue);
 }
예제 #8
0
 public static void StopRamp(this CrestronDeviceWithEvents device, uint index)
 {
     device.UShortInput[index].StopRamp();
 }
예제 #9
0
 public static void Pulse(this CrestronDeviceWithEvents device, uint index, int msTimeBetweenTransition)
 {
     device.BooleanInput[index].Pulse(msTimeBetweenTransition);
 }
예제 #10
0
 public static void SetStringValue(this CrestronDeviceWithEvents device, string name, bool repropagate, string value)
 {
     device.StringInput.SetValue(name, repropagate, value);
 }
예제 #11
0
 public static void SetStringValue(this CrestronDeviceWithEvents device, uint index, string format, params object[] args)
 {
     device.StringInput.SetValue(index, format, args);
 }
예제 #12
0
 public static void SetValue(this CrestronDeviceWithEvents device, string name, bool value)
 {
     device.SetBoolValue(name, value);
 }
예제 #13
0
 public static void SetStringValue(this CrestronDeviceWithEvents device, uint index, string value)
 {
     device.StringInput.SetValue(index, value);
 }
예제 #14
0
 public static void SetValue(this CrestronDeviceWithEvents device, uint index, bool value)
 {
     device.SetBoolValue(index, value);
 }
예제 #15
0
 public static void SetValue(this CrestronDeviceWithEvents device, string name, ushort value)
 {
     device.SetUShortValue(name, value);
 }
예제 #16
0
 public static void StopRamp(this CrestronDeviceWithEvents device, string name)
 {
     device.UShortInput[name].StopRamp();
 }
예제 #17
0
 public static void Pulse(this CrestronDeviceWithEvents device, uint index)
 {
     device.BooleanInput[index].Pulse();
 }
예제 #18
0
 public static void SetStringValue(this CrestronDeviceWithEvents device, string name, bool repropagate, string format, params object[] args)
 {
     device.StringInput.SetValue(name, repropagate, format, args);
 }
예제 #19
0
 public static void Pulse(this CrestronDeviceWithEvents device, string name)
 {
     device.BooleanInput[name].Pulse();
 }
예제 #20
0
 public static bool GetBooleanOutputValue(this CrestronDeviceWithEvents device, uint index)
 {
     return(device.BooleanOutput[index].BoolValue);
 }
예제 #21
0
 public static void Pulse(this CrestronDeviceWithEvents device, string name, int msTimeBetweenTransition)
 {
     device.BooleanInput[name].Pulse(msTimeBetweenTransition);
 }
예제 #22
0
 public static ushort GetUShortOutputValue(this CrestronDeviceWithEvents device, uint index)
 {
     return(device.UShortOutput[index].UShortValue);
 }
예제 #23
0
 public static void SetUShortValue(this CrestronDeviceWithEvents device, uint index, ushort value)
 {
     device.UShortInput.SetValue(index, value);
 }
예제 #24
0
 public static void CreateRamp(this CrestronDeviceWithEvents device, string name, ushort finalRampValue, uint timeToRampIn10msIntervals)
 {
     device.UShortInput[name].CreateRamp(finalRampValue, timeToRampIn10msIntervals);
 }
예제 #25
0
 public static bool GetBooleanOutputValue(this CrestronDeviceWithEvents device, string name)
 {
     return(device.BooleanOutput[name].BoolValue);
 }
예제 #26
0
 public static void SetUShortValue(this CrestronDeviceWithEvents device, string name, ushort value, bool repropagate)
 {
     device.UShortInput.SetValue(name, value, repropagate);
 }
예제 #27
0
 public static ushort GetUShortOutputValue(this CrestronDeviceWithEvents device, string name)
 {
     return(device.UShortOutput[name].UShortValue);
 }
예제 #28
0
 public static void SetBoolValue(this CrestronDeviceWithEvents device, uint index, bool value)
 {
     device.BooleanInput[index].BoolValue = value;
 }
예제 #29
0
 public static string GetStringInputValue(this CrestronDeviceWithEvents device, string name)
 {
     return(device.StringInput[name].StringValue);
 }
예제 #30
0
 public static void SetBoolValue(this CrestronDeviceWithEvents device, string name, bool value)
 {
     device.BooleanInput[name].BoolValue = value;
 }