From 1eef15792f27a9600c16f94b7da8eddbe2ddd934 Mon Sep 17 00:00:00 2001 From: wnj00524 <68168066+wnj00524@users.noreply.github.com> Date: Tue, 7 Apr 2026 14:28:43 +0100 Subject: [PATCH] Add in-app network editor Allow users to create new networks and edit traffic types, nodes, profiles, and edges directly in the WPF application. --- src/MedWNetworkSim.App/MainWindow.xaml | 238 ++++++- src/MedWNetworkSim.App/MainWindow.xaml.cs | 45 ++ .../ViewModels/EdgeViewModel.cs | 230 ++++++- .../ViewModels/MainWindowViewModel.cs | 587 +++++++++++++++--- .../ViewModels/NodeTrafficProfileViewModel.cs | 71 ++- .../ViewModels/NodeViewModel.cs | 84 ++- .../TrafficTypeDefinitionEditorViewModel.cs | 65 ++ .../ViewModels/ValueChangedEventArgs.cs | 8 + 8 files changed, 1185 insertions(+), 143 deletions(-) create mode 100644 src/MedWNetworkSim.App/ViewModels/TrafficTypeDefinitionEditorViewModel.cs create mode 100644 src/MedWNetworkSim.App/ViewModels/ValueChangedEventArgs.cs diff --git a/src/MedWNetworkSim.App/MainWindow.xaml b/src/MedWNetworkSim.App/MainWindow.xaml index 40e6b10..9d0dc25 100644 --- a/src/MedWNetworkSim.App/MainWindow.xaml +++ b/src/MedWNetworkSim.App/MainWindow.xaml @@ -6,15 +6,15 @@ xmlns:vm="clr-namespace:MedWNetworkSim.App.ViewModels" mc:Ignorable="d" Title="{Binding WindowTitle}" - Width="1600" - Height="980" - MinWidth="1280" - MinHeight="840"> + Width="1680" + Height="1040" + MinWidth="1380" + MinHeight="900"> - + - - + + +