Exemplo n.º 1
0
 public LampEventArgs(string id, float value, bool isCoil, LampSource source = LampSource.Lamp)
 {
     Id     = id;
     Value  = value;
     Source = source;
     IsCoil = isCoil;
 }
Exemplo n.º 2
0
 public LampEventArgs(string id, float value, LampSource source = LampSource.Lamp)
 {
     Id     = id;
     Value  = value;
     Source = source;
     IsCoil = false;
 }
Exemplo n.º 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;
        }
Exemplo n.º 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));
 }