From c661fd8d7936c97bf6960b4bf70c7800818c9da3 Mon Sep 17 00:00:00 2001 From: Francesco Date: Tue, 28 Jul 2020 18:53:30 +0200 Subject: [PATCH] Prepare GUI for Customer --- .../LoggingClient/LoggingClient.csproj | 10 + LoggingClient/LoggingClient/MainWindow.xaml | 12 +- LoggingClient/LoggingClient/Model/Customer.cs | 60 ++++++ LoggingClient/LoggingClient/Model/Logging.cs | 4 +- .../Repository/CustomerRepository.cs | 56 ++++++ .../Repository/LoggingRepository.cs | 1 + .../ViewModel/CustomerViewModel.cs | 179 ++++++++++++++++++ .../ViewModel/NavigationViewModel.cs | 6 + .../LoggingClient/Views/CustomerView.xaml | 155 +++++++++++++++ .../LoggingClient/Views/CustomerView.xaml.cs | 28 +++ .../LoggingClient/Views/LocationView.xaml | 4 +- 11 files changed, 508 insertions(+), 7 deletions(-) create mode 100755 LoggingClient/LoggingClient/Model/Customer.cs create mode 100755 LoggingClient/LoggingClient/Repository/CustomerRepository.cs create mode 100755 LoggingClient/LoggingClient/ViewModel/CustomerViewModel.cs create mode 100755 LoggingClient/LoggingClient/Views/CustomerView.xaml create mode 100755 LoggingClient/LoggingClient/Views/CustomerView.xaml.cs diff --git a/LoggingClient/LoggingClient/LoggingClient.csproj b/LoggingClient/LoggingClient/LoggingClient.csproj index 78148cf..9ca6f56 100644 --- a/LoggingClient/LoggingClient/LoggingClient.csproj +++ b/LoggingClient/LoggingClient/LoggingClient.csproj @@ -78,10 +78,12 @@ MSBuild:Compile Designer + + @@ -90,9 +92,13 @@ + + + CustomerView.xaml + LocationView.xaml @@ -113,6 +119,10 @@ MainWindow.xaml Code + + Designer + MSBuild:Compile + Designer MSBuild:Compile diff --git a/LoggingClient/LoggingClient/MainWindow.xaml b/LoggingClient/LoggingClient/MainWindow.xaml index 83fd525..cd43c54 100755 --- a/LoggingClient/LoggingClient/MainWindow.xaml +++ b/LoggingClient/LoggingClient/MainWindow.xaml @@ -4,7 +4,7 @@ xmlns:views="clr-namespace:LoggingClient.Views" xmlns:local="clr-namespace:LoggingClient.ViewModel" Title="MainWindow" Height="470" Width="800" ResizeMode="NoResize"> - + @@ -13,6 +13,11 @@ + + + + + @@ -24,8 +29,9 @@ - + +