mirror of
https://github.com/snltty/linker.git
synced 2025-12-24 12:38:04 +08:00
26 lines
503 B
C#
26 lines
503 B
C#
using common.libs.helpers;
|
|
using System.Runtime.Versioning;
|
|
|
|
namespace cmonitor.plugins.display.report
|
|
{
|
|
[SupportedOSPlatform("windows")]
|
|
public sealed class DisplayWindows : IDisplay
|
|
{
|
|
public DisplayWindows()
|
|
{
|
|
}
|
|
|
|
public void SetDisplayState(bool onState)
|
|
{
|
|
if (onState)
|
|
{
|
|
DisplayHelper.On();
|
|
}
|
|
else
|
|
{
|
|
DisplayHelper.Off();
|
|
}
|
|
}
|
|
}
|
|
}
|