mirror of
https://github.com/Maassoft/ColorControl.git
synced 2026-10-21 16:12:18 -05:00
28 lines
655 B
C#
28 lines
655 B
C#
namespace ColorControl.Shared.Contracts;
|
|
|
|
public class DdcSettings
|
|
{
|
|
public bool ApplyDdc { get; set; }
|
|
public List<DdcSetting> Settings { get; set; } = [];
|
|
public bool RemoveOutOfRangeOsd { get; set; }
|
|
|
|
public DdcSettings()
|
|
{
|
|
}
|
|
|
|
public DdcSettings(DdcSettings settings)
|
|
{
|
|
settings ??= new DdcSettings();
|
|
|
|
ApplyDdc = settings.ApplyDdc;
|
|
Settings.Clear();
|
|
Settings.AddRange(settings.Settings.Select(x => new DdcSetting(x)));
|
|
RemoveOutOfRangeOsd = settings.RemoveOutOfRangeOsd;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"Settings: {Settings.Count}";
|
|
}
|
|
}
|