From b5c2e489b3358fe840d51030032aef1114a4eb48 Mon Sep 17 00:00:00 2001 From: Ahmed Zamil Date: Mon, 10 Jun 2024 14:19:26 +0300 Subject: [PATCH] up --- .../Demo.cs | 7 +++---- .../Web/css/style.css | 7 +++++++ .../Web/index.html | 21 +++++++++---------- 3 files changed, 20 insertions(+), 15 deletions(-) diff --git a/Esiur.Examples.StandaloneWebServerDemo/Demo.cs b/Esiur.Examples.StandaloneWebServerDemo/Demo.cs index cb9d272..3b6ecd1 100644 --- a/Esiur.Examples.StandaloneWebServerDemo/Demo.cs +++ b/Esiur.Examples.StandaloneWebServerDemo/Demo.cs @@ -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 Cleared; [Export] public ResourceEventHandler 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); } + } } diff --git a/Esiur.Examples.StandaloneWebServerDemo/Web/css/style.css b/Esiur.Examples.StandaloneWebServerDemo/Web/css/style.css index 512dfba..3c0143a 100644 --- a/Esiur.Examples.StandaloneWebServerDemo/Web/css/style.css +++ b/Esiur.Examples.StandaloneWebServerDemo/Web/css/style.css @@ -29,6 +29,13 @@ i-router { overflow: auto; } +.content { + +} + +.iui-error { + display: none; +} /* row */ .row label { diff --git a/Esiur.Examples.StandaloneWebServerDemo/Web/index.html b/Esiur.Examples.StandaloneWebServerDemo/Web/index.html index e3289f8..b405639 100644 --- a/Esiur.Examples.StandaloneWebServerDemo/Web/index.html +++ b/Esiur.Examples.StandaloneWebServerDemo/Web/index.html @@ -38,7 +38,7 @@ - + -
- +