From 08a53739ee2b66c770f0ef98fd3b7cae8be8f4a7 Mon Sep 17 00:00:00 2001 From: Francesco Date: Thu, 23 Jul 2020 16:29:59 +0200 Subject: [PATCH] WIP - Generics Implementation --- .../LoggingClient/LoggingClient.csproj | 12 ++ LoggingClient/LoggingClient/MainWindow.xaml | 36 +++- LoggingClient/LoggingClient/Model/Location.cs | 30 ++- LoggingClient/LoggingClient/Model/Logging.cs | 3 +- LoggingClient/LoggingClient/Model/Model.cs | 10 +- LoggingClient/LoggingClient/Model/Node.cs | 47 ++++ .../Model/SeverityComboBoxItem.cs | 1 - .../Repository/LocationRepository.cs | 188 ++++++++++++++-- .../Repository/LoggingRepository.cs | 204 +++++++++++++++--- .../Repository/RepositoryBase.cs | 82 ++++++- .../ViewModel/Commands/BaseCommand.cs | 30 +++ .../ViewModel/LocationTreeBuilder.cs | 54 +++++ .../ViewModel/LocationViewModel.cs | 191 ++++++++++++++++ .../LoggingClient/ViewModel/LogViewModel.cs | 22 +- .../ViewModel/NavigationViewModel.cs | 46 ++++ .../LoggingClient/Views/LocationView.xaml | 121 +++++++++++ .../LoggingClient/Views/LocationView.xaml.cs | 28 +++ .../LoggingClient/Views/LogView.xaml | 22 +- 18 files changed, 1020 insertions(+), 107 deletions(-) mode change 100644 => 100755 LoggingClient/LoggingClient/MainWindow.xaml create mode 100755 LoggingClient/LoggingClient/Model/Node.cs mode change 100644 => 100755 LoggingClient/LoggingClient/Model/SeverityComboBoxItem.cs create mode 100755 LoggingClient/LoggingClient/ViewModel/Commands/BaseCommand.cs create mode 100755 LoggingClient/LoggingClient/ViewModel/LocationTreeBuilder.cs create mode 100755 LoggingClient/LoggingClient/ViewModel/LocationViewModel.cs create mode 100755 LoggingClient/LoggingClient/ViewModel/NavigationViewModel.cs create mode 100755 LoggingClient/LoggingClient/Views/LocationView.xaml create mode 100755 LoggingClient/LoggingClient/Views/LocationView.xaml.cs mode change 100644 => 100755 LoggingClient/LoggingClient/Views/LogView.xaml diff --git a/LoggingClient/LoggingClient/LoggingClient.csproj b/LoggingClient/LoggingClient/LoggingClient.csproj index aad4d26..78148cf 100644 --- a/LoggingClient/LoggingClient/LoggingClient.csproj +++ b/LoggingClient/LoggingClient/LoggingClient.csproj @@ -80,14 +80,22 @@ + + + + + + + LocationView.xaml + LogView.xaml @@ -105,6 +113,10 @@ MainWindow.xaml Code + + Designer + MSBuild:Compile + Designer MSBuild:Compile diff --git a/LoggingClient/LoggingClient/MainWindow.xaml b/LoggingClient/LoggingClient/MainWindow.xaml old mode 100644 new mode 100755 index 56acf2f..8a9132f --- a/LoggingClient/LoggingClient/MainWindow.xaml +++ b/LoggingClient/LoggingClient/MainWindow.xaml @@ -2,8 +2,40 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:views="clr-namespace:LoggingClient.Views" + xmlns:local="clr-namespace:LoggingClient.ViewModel" Title="MainWindow" Height="450" Width="800" ResizeMode="NoResize"> - + + + + + + + + + + + + + + + + + + + + + + + +