2022-05-23 00:58:58 +08:00
|
|
|
using CMM.Library.Base;
|
|
|
|
|
|
|
|
|
|
namespace CMM.Library.ViewModel
|
|
|
|
|
{
|
Add brightness/contrast sliders, input source switching, and 9-language localization
- Add VCP commands for brightness (10), contrast (12), input source (60)
- Fix UTF-16 encoding for monitor data parsing
- Add system tray app with monitor controls
- Add localization for en, es, fr, de, zh, ja, pt, it, hi
- Update to .NET 9.0
- Add LICENSE and README
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-03 22:11:35 -05:00
|
|
|
public record InputSourceOption(int Value, string Name)
|
|
|
|
|
{
|
|
|
|
|
public override string ToString() => Name;
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-23 00:58:58 +08:00
|
|
|
public class XMonitorStatus : PropertyBase
|
|
|
|
|
{
|
|
|
|
|
public string VCP_Code
|
|
|
|
|
{
|
|
|
|
|
get => _VCP_Code;
|
|
|
|
|
set { SetProperty(ref _VCP_Code, value); }
|
|
|
|
|
}
|
|
|
|
|
string _VCP_Code;
|
|
|
|
|
|
|
|
|
|
public string VCPCodeName
|
|
|
|
|
{
|
|
|
|
|
get => _VCPCodeName;
|
|
|
|
|
set { SetProperty(ref _VCPCodeName, value); }
|
|
|
|
|
}
|
|
|
|
|
string _VCPCodeName;
|
|
|
|
|
|
|
|
|
|
public string Read_Write
|
|
|
|
|
{
|
|
|
|
|
get => _Read_Write;
|
|
|
|
|
set { SetProperty(ref _Read_Write, value); }
|
|
|
|
|
}
|
|
|
|
|
string _Read_Write;
|
|
|
|
|
|
|
|
|
|
public int? CurrentValue
|
|
|
|
|
{
|
|
|
|
|
get => _CurrentValue;
|
|
|
|
|
set { SetProperty(ref _CurrentValue, value); }
|
|
|
|
|
}
|
|
|
|
|
int? _CurrentValue;
|
|
|
|
|
|
|
|
|
|
public int? MaximumValue
|
|
|
|
|
{
|
|
|
|
|
get => _MaximumValue;
|
|
|
|
|
set { SetProperty(ref _MaximumValue, value); }
|
|
|
|
|
}
|
|
|
|
|
int? _MaximumValue;
|
|
|
|
|
|
2023-07-03 01:51:09 +08:00
|
|
|
public IEnumerable<int> PossibleValues
|
2022-05-23 00:58:58 +08:00
|
|
|
{
|
|
|
|
|
get => _PossibleValues;
|
|
|
|
|
set { SetProperty(ref _PossibleValues, value); }
|
|
|
|
|
}
|
2023-07-03 01:51:09 +08:00
|
|
|
IEnumerable<int> _PossibleValues;
|
2022-05-23 00:58:58 +08:00
|
|
|
}
|
|
|
|
|
}
|