How jonaffrye/trainsimulatorwpf works
Train Simulator is a WPF desktop railway-driving simulator. The user selects a station, departure schedule and train in the main screen, then completes the cabin startup sequence before entering the driving dashboard. Dashboard controls update the selected train’s velocity and position, which are reflected in performance displays. The README also describes Belgian stations, train variants and Davis-equation physics. The graph follows the sampled event wiring and model calls; unsampled XAML and runtime behavior are not inferred.
Main entry points: MainScreenxaml.cs Journey selection · Screen.xaml.cs Driving dashboard · MainWindow.xaml.cs Main window · LeftPan.xaml.cs Navigation panel
Components 10
Selection and navigation
- Main window
TrainSimulatorWPF/MainWindow.xaml.cs - Journey selection
TrainSimulatorWPF/View/CenterPanel/MainScreenxaml.cs
Cabin controls
- Navigation panel
TrainSimulatorWPF/View/LeftPanel/LeftPan.xaml.cs - Cabin controls
TrainSimulatorWPF/View/BottomPanel/BottomPan.xaml.cs - Regulator slider
TrainSimulatorWPF/View/RightPanel/RightPan.xaml.cs
Driving simulation
- Driving dashboard
TrainSimulatorWPF/View/CenterPanel/Screen.xaml.cs
Railway domain
- Station
TrainSimulatorWPF/Models/Station.cs - Schedule
TrainSimulatorWPF/Models/Schedule.cs - Train model
TrainSimulatorWPF/Models/Train.cs
Other components
- Driver
Connections 17
- Driver → Main window: uses
README.md - Main window → Journey selection: hosts
TrainSimulatorWPF/MainWindow.xaml.cs - Main window → Driving dashboard: hosts
TrainSimulatorWPF/MainWindow.xaml.cs - Driver → Navigation panel: presses
README.md - Driver → Cabin controls: operates
README.md - Driver → Regulator slider: adjusts
README.md - Navigation panel → Journey selection: raises events
- Navigation panel → Driving dashboard: raises events
- Cabin controls → Journey selection: raises events
- Regulator slider → Driving dashboard: raises events
- Journey selection → Station: builds choices
TrainSimulatorWPF/View/CenterPanel/MainScreenxaml.cs - Journey selection → Schedule: builds choices
TrainSimulatorWPF/View/CenterPanel/MainScreenxaml.cs - Journey selection → Train model: builds choices
TrainSimulatorWPF/View/CenterPanel/MainScreenxaml.cs - Journey selection → Driving dashboard: notifies selection
TrainSimulatorWPF/View/CenterPanel/MainScreenxaml.cs - Driving dashboard → Train model: updates motion
TrainSimulatorWPF/View/CenterPanel/Screen.xaml.cs - Train model → Driving dashboard: supplies telemetry
TrainSimulatorWPF/View/CenterPanel/Screen.xaml.cs - Station → Schedule: holds departures
TrainSimulatorWPF/Models/Station.cs