From b39c96cdd277a4de8256940ca6b2e80abc752796 Mon Sep 17 00:00:00 2001 From: Jacopo Santoni Date: Sat, 14 Jul 2018 00:48:35 +0200 Subject: [PATCH] Log Window (#94) * Split type combobox into system combobox and disc type combobox * corrected indentation for xaml file * fixed merge with head * fixed format * fixed issues for PR, added KnownSystem.CUSTOM * removed Updater.cs which ended by error in commit * fixed GetOuptutName() for new drive/system combobox * created LogWindow and first tests of output gathering * integrated all the proof of concept related to stream fetching of DIC output into LogWindow * working on LogWindow\ncreated more efficient output matching management, improved handling of process termination * created Tasks file\nmoved some methods there, created DumpEnvironment to manage are arguments * moved additional methods to Tasks to make it more modular * changed StartDumping flow to avoid returning if extra tools are not found * moved main dump workflow into Tasks class * created specific DumpResult class for better error reporting/management * fixes * fixes Dispatcher thread issue with progress bar * continued refactor - split EnsureDiscInformation into an additional EnsureCorrectInformationForSystemAndMediaType - proof of concept of using custom extensions to enum types to give better functionality (and encapsulation) - changed cmb_MediaType to keep a List and got rid of Tuple * restored GetDiscType functionality * fixed btn_StartStop enabled on EnsureCorrect... error * fixed whitespace * fixed indentation * merged conflicts * moved log window * working on LogWindow resize/location behavior * working on message logging in LogWindow * added working integration between MenuItem for LogWindow and its visibility status, fixes issues with positioning and visibility, correctly bound Verbose flag to property * finished integrating LogWindow, added some verbose logs * added logs * fixed include order * added option to show log window at startup, removed useless QuietMode property from MainWindow --- DICUI/App.config | 2 + DICUI/DICUI.csproj | 7 + DICUI/LogWindow.xaml | 54 ++++ DICUI/LogWindow.xaml.cs | 386 +++++++++++++++++++++++++++++ DICUI/MainWindow.xaml | 9 +- DICUI/MainWindow.xaml.cs | 53 +++- DICUI/Options.cs | 5 + DICUI/UI/ViewModels.cs | 54 ++++ DICUI/Utilities/Converters.cs | 4 + DICUI/Utilities/DumpEnvironment.cs | 5 + 10 files changed, 573 insertions(+), 6 deletions(-) create mode 100644 DICUI/LogWindow.xaml create mode 100644 DICUI/LogWindow.xaml.cs diff --git a/DICUI/App.config b/DICUI/App.config index 4decd164..42ef3b7c 100644 --- a/DICUI/App.config +++ b/DICUI/App.config @@ -8,5 +8,7 @@ + + diff --git a/DICUI/DICUI.csproj b/DICUI/DICUI.csproj index b0f55549..52a652c3 100644 --- a/DICUI/DICUI.csproj +++ b/DICUI/DICUI.csproj @@ -97,6 +97,9 @@ MSBuild:Compile Designer + + LogWindow.xaml + @@ -114,6 +117,10 @@ OptionsWindow.xaml + + Designer + MSBuild:Compile + MSBuild:Compile Designer diff --git a/DICUI/LogWindow.xaml b/DICUI/LogWindow.xaml new file mode 100644 index 00000000..c76c5f8a --- /dev/null +++ b/DICUI/LogWindow.xaml @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +