mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-03-03 15:30:27 +00:00
GUI桌面环境
This commit is contained in:
22
Gui/ShellComponents/Dock/StartMenuDockIcon.cs
Normal file
22
Gui/ShellComponents/Dock/StartMenuDockIcon.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Cosmos.System.Graphics;
|
||||
|
||||
namespace CMLeonOS.Gui.ShellComponents.Dock
|
||||
{
|
||||
internal class StartMenuDockIcon : BaseDockIcon
|
||||
{
|
||||
[IL2CPU.API.Attribs.ManifestResourceStream(ResourceName = "CMLeonOS.Gui.Resources.Dock.StartMenu.bmp")]
|
||||
private static byte[] _iconBytes_StartMenu;
|
||||
internal static Bitmap Icon_StartMenu = new Bitmap(_iconBytes_StartMenu);
|
||||
|
||||
internal StartMenuDockIcon() : base(
|
||||
image: Icon_StartMenu,
|
||||
doAnimation: false)
|
||||
{
|
||||
}
|
||||
|
||||
internal override void Clicked()
|
||||
{
|
||||
StartMenu.CurrentStartMenu.ToggleStartMenu();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user