2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-27 05:23:13 +00:00
This commit is contained in:
2024-06-10 14:19:26 +03:00
parent 3e4d6461a3
commit b5c2e489b3
3 changed files with 20 additions and 15 deletions

View File

@ -8,12 +8,11 @@ using System.Threading.Tasks;
namespace Esiur.Examples.StandaloneWebServerDemo
{
[Export]
[Resource]
public partial class Demo
{
[Export] int color { get; set; }
[Export] string label { get; set;}
[Export] int color;
[Export] string label = "Hello World";
[Export] public ResourceEventHandler<int> Cleared;
[Export] public ResourceEventHandler<Point> Drawn;
@ -21,7 +20,6 @@ namespace Esiur.Examples.StandaloneWebServerDemo
[Export] public void Draw(int x, int y, int color)
{
Drawn?.Invoke(new Point() { X = x, Y = y, Color = color });
}
@ -35,6 +33,7 @@ namespace Esiur.Examples.StandaloneWebServerDemo
for (var y = 0; y < 300; y++)
p.Add(0);
}
}
}