mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-03-03 15:30:27 +00:00
23 lines
517 B
C#
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;
|
|
}
|
|
}
|
|
}
|