GUI桌面环境

This commit is contained in:
2026-03-01 17:03:49 +08:00
parent 545f40cf95
commit f0a9223520
162 changed files with 9170 additions and 135 deletions

24
Power.cs Normal file
View 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();
}
}
}
}