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
| Button | What you should see |
|---|---|
| Start | every service shows Online, status Status: Running, log Dashboard started. |
| Stop | every service shows Offline, status Status: Stopped, log Dashboard stopped. |
| Reset | the log clears, services Offline, status Status: Idle, log Dashboard reset. |
| Refresh | a fresh Status refreshed. log entry |
The controls
| Control | Name | Text |
|---|---|---|
| Label | lblTitle | System Dashboard |
| Label | lblStatus | Status: Idle |
| Panel | pnlServices | holds the three service labels |
| Label | lblServerStatus / lblDatabaseStatus / lblApiStatus | Server / Database / API Service: Offline |
| Button | btnStart / btnStop / btnReset / btnRefresh | Start / Stop / Reset / Refresh |
| ListBox | lstEventLog | the event log |
Where things live
| File | What it's for |
|---|---|
Program.cs | Startup — Main() shows DashboardWindow |
DashboardWindow.cs | Your code — the four Click handlers and AddLog() |
DashboardWindow.Designer.cs | Generated by the Designer — don't edit by hand |