public LampEventArgs(string id, float value, bool isCoil, LampSource source = LampSource.Lamp) { Id = id; Value = value; Source = source; IsCoil = isCoil; }
public LampEventArgs(string id, float value, LampSource source = LampSource.Lamp) { Id = id; Value = value; Source = source; IsCoil = false; }
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; }
public void SetLamp(string id, float value, bool isCoil = false, LampSource source = LampSource.Lamp) { OnLampChanged?.Invoke(this, new LampEventArgs(id, value, isCoil, source)); }