Skip to main content

Designer, properties & events

The System Dashboard from Module 2 · Controls, Events & the Designer, as the walkthrough video builds it: a title and status label, a panel with three service labels, Start / Stop / Reset / Refresh buttons and an event log. Each button has one short Click handler in DashboardWindow.cs; the log line is written by one AddLog() helper.

Run it

cd "LearnWisej-Samples/Foundations Course/Module 2/WisejTrainingApp"
dotnet run -f net10.0 --urls http://localhost:5082

Then open http://localhost:5082. (Visual Studio: open WisejTrainingApp.slnx, press F5.)

What to try

ButtonWhat you should see
Startevery service shows Online, status Status: Running, log Dashboard started.
Stopevery service shows Offline, status Status: Stopped, log Dashboard stopped.
Resetthe log clears, services Offline, status Status: Idle, log Dashboard reset.
Refresha fresh Status refreshed. log entry

The controls

ControlNameText
LabellblTitleSystem Dashboard
LabellblStatusStatus: Idle
PanelpnlServicesholds the three service labels
LabellblServerStatus / lblDatabaseStatus / lblApiStatusServer / Database / API Service: Offline
ButtonbtnStart / btnStop / btnReset / btnRefreshStart / Stop / Reset / Refresh
ListBoxlstEventLogthe event log

Where things live

FileWhat it's for
Program.csStartup — Main() shows DashboardWindow
DashboardWindow.csYour code — the four Click handlers and AddLog()
DashboardWindow.Designer.csGenerated by the Designer — don't edit by hand