mirror of
https://github.com/SabreTools/MPF.git
synced 2026-02-03 21:29:27 +00:00
[PR #84] [MERGED] Refactor of ComboBox underlying types #955
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/84
Author: @Jakz
Created: 7/5/2018
Status: ✅ Merged
Merged: 7/5/2018
Merged by: @mnadareski
Base:
master← Head:combobox_enhancements📝 Commits (10+)
d68e186Split type combobox into system combobox and disc type comboboxffb53ddupdated fork to head21969f9corrected indentation for xaml filed296b9afixed merge with head596e26efixed format20243dcfixed issues for PR, added KnownSystem.CUSTOM5ba23b9removed Updater.cs which ended by error in commit66d06f1fixed GetOuptutName() for new drive/system comboboxb4400fbMerge branch 'master' of github.com:reignstumble/DICUI2bac147Merge branch 'master' of github.com:reignstumble/DICUI📊 Changes
17 files changed (+334 additions, -468 deletions)
View changed files
📝
DICUI.Test/DICUI.Test.csproj(+1 -0)📝
DICUI.Test/DumpEnvironmentTest.cs(+10 -9)📝
DICUI.Test/Utilities/ConvertersTest.cs(+36 -1)➕
DICUI.Test/Utilities/DriveTest.cs(+21 -0)📝
DICUI.Test/Utilities/KnownSystemExtensionsTest.cs(+49 -1)📝
DICUI.Test/Utilities/ValidatorsTest.cs(+1 -1)📝
DICUI/DICUI.csproj(+0 -2)📝
DICUI/Data/Constants.cs(+28 -2)📝
DICUI/Data/Enumerations.cs(+21 -1)➖
DICUI/External/IOrderedDictionary.cs(+0 -10)➖
DICUI/External/OrderedDictionary.cs(+0 -330)📝
DICUI/MainWindow.xaml(+14 -2)📝
DICUI/MainWindow.xaml.cs(+54 -51)📝
DICUI/Tasks.cs(+8 -7)📝
DICUI/Utilities/Converters.cs(+56 -0)📝
DICUI/Utilities/DumpInformation.cs(+2 -2)📝
DICUI/Utilities/Validators.cs(+33 -49)📄 Description
This PR is aimed to solve how ComboBox were populated. The old approach used tuples to just wrap together values but without any semantic.
This has been refactored:
KnownSystemCategoryenumKnownSystemspecial marker values to splitKnownSystemsinto categoriesKnownSystemComboBoxItemwhich can hold aKnownSystemor aKnownSystemCategoryComboBoxbindings to use this new approachDriveclass to store letter, volume label andisFloppyflagComboBoxto use this new objectDumpEnvironmentto useDriveinstead that separated attributesOrderedDictionary(not needed anymore and hopefully we won't need it again)DICUI is now 100%
KeyValuePair/Tuplefree! :)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.