Ooui-tws-port/Example/Program.cs

13 lines
259 B
C#
Raw Normal View History

using Tesses.WebServer;
using Ooui;
UI ui=new UI();
ui.Verbose = false;
Button btn = new Button(){Text = "Click Me"};
int i =0;
btn.Click += (sender,e)=>{
btn.Text = $"Clicked {++i} time(s)";
};
ui.Publish("/",btn);
ui.StartServer(45252);