示例#1
0
 public LampEventArgs(string id, float value, bool isCoil, LampSource source = LampSource.Lamp)
 {
     Id     = id;
     Value  = value;
     Source = source;
     IsCoil = isCoil;
 }
示例#2
0
 public LampEventArgs(string id, float value, LampSource source = LampSource.Lamp)
 {
     Id     = id;
     Value  = value;
     Source = source;
     IsCoil = false;
 }
示例#3
0
        public LampListData(LampMapping lampMapping)
        {
            Id          = lampMapping.Id;
            IsCoil      = lampMapping.IsCoil;
            Source      = lampMapping.Source;
            Description = lampMapping.Description;
            Device      = lampMapping.Device;
            DeviceItem  = lampMapping.DeviceItem;
            Type        = lampMapping.Type;
            Channel     = lampMapping.Channel;
            FadingSteps = lampMapping.FadingSteps;

            LampMapping = lampMapping;
        }
示例#4
0
 public void SetLamp(string id, float value, bool isCoil = false, LampSource source = LampSource.Lamp)
 {
     OnLampChanged?.Invoke(this, new LampEventArgs(id, value, isCoil, source));
 }