mirror of
https://github.com/SabreTools/MPF.git
synced 2026-02-07 05:40:06 +00:00
[PR #300] [MERGED] MVVM Overhaul #997
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/SabreTools/MPF/pull/300
Author: @mnadareski
Created: 8/4/2021
Status: ✅ Merged
Merged: 8/4/2021
Merged by: @mnadareski
Base:
master← Head:mvvm📝 Commits (10+)
08ab56eStart migrating to MVVMab58450Finish gutting LogOutput503910aRemove now-useless regions3b00731Incremental initialization of the UIe4b072cAdd options directly to App-level037f274Move options globally59e93c9Accept -> OK1c22375Add future work notes to App.xaml.cs82e0aeeAdd back cancel to DiscInformationWindow5adc435Enable/Disable instead of Add/Remove📊 Changes
26 files changed (+2990 additions, -2510 deletions)
View changed files
📝
MPF.Check/Program.cs(+1 -0)📝
MPF.Library/Data/DumpEnvironment.cs(+5 -2)📝
MPF.Library/Data/Options.cs(+9 -1)📝
MPF.Library/Data/SubmissionInfo.cs(+169 -15)📝
MPF.Library/Utilities/Validators.cs(+6 -0)📝
MPF/App.xaml(+9 -5)📝
MPF/App.xaml.cs(+49 -0)➕
MPF/OptionsLoader.cs(+44 -0)📝
MPF/UserControls/LogOutput.xaml(+4 -4)📝
MPF/UserControls/LogOutput.xaml.cs(+5 -532)📝
MPF/UserControls/UserInput.xaml(+16 -8)📝
MPF/UserControls/UserInput.xaml.cs(+88 -9)➖
MPF/ViewModels.cs(+0 -38)➕
MPF/ViewModels/DiscInformationViewModel.cs(+283 -0)➕
MPF/ViewModels/LogViewModel.cs(+577 -0)➕
MPF/ViewModels/MainViewModel.cs(+1322 -0)➕
MPF/ViewModels/OptionsViewModel.cs(+263 -0)📝
MPF/Windows/DiscInformationWindow.xaml(+36 -36)📝
MPF/Windows/DiscInformationWindow.xaml.cs(+7 -337)📝
MPF/Windows/MainWindow.xaml(+18 -13)...and 6 more files
📄 Description
This PR migrates the internals over to a pseudo-MVVM layout. The intent is to be able to more easily add and remove things in the future in terms of functionality.
This is currently not full MVVM because it does not use Commands internally, rather setting normal event handlers through the view models. This needs to be cleaned up in the future.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.