mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-03-03 15:30:27 +00:00
GUI桌面环境
This commit is contained in:
24
Power.cs
Normal file
24
Power.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user