mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-03-03 11:37:01 +00:00
25 lines
430 B
C#
25 lines
430 B
C#
|
|
using Sys = Cosmos.System;
|
||
|
|
|
||
|
|
namespace CMLeonOS
|
||
|
|
{
|
||
|
|
public static class Power
|
||
|
|
{
|
||
|
|
public static void Reboot()
|
||
|
|
{
|
||
|
|
Sys.Power.Reboot();
|
||
|
|
}
|
||
|
|
|
||
|
|
public static void Shutdown(bool reboot = false)
|
||
|
|
{
|
||
|
|
if (reboot)
|
||
|
|
{
|
||
|
|
Sys.Power.Reboot();
|
||
|
|
}
|
||
|
|
else
|
||
|
|
{
|
||
|
|
Sys.Power.Shutdown();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|