Files
CMLeonOS/Gui/ShellComponents/Dock/AppDockIcon.cs
2026-03-01 17:03:49 +08:00

23 lines
517 B
C#

using CMLeonOS;
using CMLeonOS.Gui.UILib;
namespace CMLeonOS.Gui.ShellComponents.Dock
{
internal class AppDockIcon : BaseDockIcon
{
internal AppDockIcon(AppWindow appWindow) : base(
image: appWindow.Icon,
doAnimation: true)
{
AppWindow = appWindow;
}
internal AppWindow AppWindow { get; init; }
internal override void Clicked()
{
ProcessManager.GetProcess<WindowManager>().Focus = AppWindow;
}
}
}