From 0073b41c8d4492260a3da33bf6d20055153cbb2e Mon Sep 17 00:00:00 2001 From: Lars Mulder Date: Fri, 19 Sep 2025 22:35:40 +0200 Subject: [PATCH 1/7] Removed all instances of #nullable disable --- TODO.md | 1 - src/RayCarrot.RCP.Metro/AppData/AppUserData.Aliases.v12.0.0.cs | 3 +-- src/RayCarrot.RCP.Metro/AppData/AppUserData.Aliases.v14.0.0.cs | 3 +-- src/RayCarrot.RCP.Metro/AppData/AppUserData.cs | 1 - src/RayCarrot.RCP.Metro/Binary/CPA/GAM_DisplayFixMode.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/CPA/GAM_EngineMode.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/CPA/GAM_EngineStructure.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/CPA/IPT_InputMode.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/CPA/PS1/CPAPs1SaveBlock.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock1.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock2.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock3.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveData.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushLevelSave.cs | 3 +-- .../Binary/CPA/PS1/RaymanRushPs1SaveBlock1.cs | 3 +-- .../Binary/CPA/PS1/RaymanRushPs1SaveBlock2.cs | 3 +-- .../Binary/CPA/PS1/RaymanRushPs1SaveBlock3.cs | 3 +-- .../Binary/CPA/PS1/RaymanRushPs1SaveData.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/CPA/PS2/Rayman2Ps2SaveData.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/CPA/PS2/Rayman2Ps2SaveInfo.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/GameMaker/GameMaker_DSMap.cs | 3 +-- .../Binary/GameMaker/GameMaker_DSMapDataObject.cs | 3 +-- .../Binary/GameMaker/GameMaker_DSMapEntry.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/Gba/R3/R3GBA_SaveData.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/Gba/R3/R3GBA_SaveSlot.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_Highscore.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_LevelSave.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_SaveData.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_SaveSlot.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/Gba/RRR/RRRGBA_SaveData.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/Gba/RRR/RRRGBA_SaveSlot.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/Jade/Jade_BIG_BigFile.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/Jade/Jade_BIG_FatFile.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/PS1ISO/PS1ISO.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/PS1ISO/PS1ISOLicense.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/ProcessMemoryStreamFile.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SavSlotDesc.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SaveFile.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SaveSlot.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/RRR/RRR_UniversSave.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_MiniGame.cs | 1 - src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_SaveFile.cs | 1 - src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_ScoreEntry.cs | 1 - src/RayCarrot.RCP.Metro/Binary/Ubisoft/UPC_StorageFile.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/Unity/Unity_PlayerPrefs.cs | 3 +-- src/RayCarrot.RCP.Metro/Binary/Unity/Unity_PlayerPrefsEntry.cs | 3 +-- src/RayCarrot.RCP.Metro/Helpers/Extensions/EnumExtensions.cs | 3 +-- .../Helpers/Extensions/EnumerableExtensions.cs | 3 +-- src/RayCarrot.RCP.Metro/Helpers/Extensions/ObjectExtensions.cs | 3 +-- src/RayCarrot.RCP.Metro/Helpers/Extensions/StringExtensions.cs | 3 +-- src/RayCarrot.RCP.Metro/Helpers/Extensions/TaskExtensions.cs | 3 +-- src/RayCarrot.RCP.Metro/Helpers/Extensions/VisualExtensions.cs | 3 +-- src/RayCarrot.RCP.Metro/Helpers/Extensions/WindowExtensions.cs | 3 +-- .../Helpers/JsonConverters/ByteArrayHexConverter.cs | 3 +-- .../Helpers/JsonConverters/SimpleTypeConverter.cs | 3 +-- src/RayCarrot.RCP.Metro/Helpers/JsonHelpers.cs | 3 +-- .../Helpers/OperationStatus/IStatusUpdated.cs | 3 +-- .../Helpers/OperationStatus/ItemsOperationProgress.cs | 3 +-- .../Helpers/OperationStatus/OperationProgressEventArgs.cs | 3 +-- .../Helpers/OperationStatus/OperationState.cs | 3 +-- src/RayCarrot.RCP.Metro/Helpers/OperationStatus/Progress.cs | 3 +-- src/RayCarrot.RCP.Metro/Helpers/Patcher/FilePatcher.cs | 3 +-- src/RayCarrot.RCP.Metro/Helpers/Patcher/FilePatcher_Patch.cs | 3 +-- .../Helpers/Windows/ShellThumbnailExtensions.cs | 3 +-- src/RayCarrot.RCP.Metro/Helpers/Windows/ShellThumbnailSize.cs | 3 +-- src/RayCarrot.RCP.Metro/Helpers/Windows/WindowsHelpers.cs | 3 +-- .../IO/FileSystemPath/FileSystemPathConverter.cs | 3 +-- .../IO/FileSystemPath/FileSystemPathExtensions.cs | 3 +-- src/RayCarrot.RCP.Metro/Installer/GameInstaller.cs | 3 +-- src/RayCarrot.RCP.Metro/Installer/GameInstallerDialog.xaml.cs | 3 +-- src/RayCarrot.RCP.Metro/Installer/GameInstaller_Data.cs | 3 +-- src/RayCarrot.RCP.Metro/Installer/GameInstaller_DriveInfo.cs | 3 +-- src/RayCarrot.RCP.Metro/Installer/GameInstaller_Item.cs | 3 +-- src/RayCarrot.RCP.Metro/Installer/GameInstaller_ItemStage.cs | 3 +-- src/RayCarrot.RCP.Metro/Installer/GameInstaller_Result.cs | 3 +-- .../Installer/Games/InstallerGames.Designer.cs | 3 +-- .../Legacy/Patcher/Library/PatchLibraryPackage.cs | 3 +-- .../Legacy/Patcher/Library/PatchLibraryPackageHistory.cs | 3 +-- .../Legacy/Patcher/Library/PatchLibraryPackagePatchEntry.cs | 3 +-- .../Legacy/Patcher/PackagedResourceChecksum.cs | 3 +-- .../Legacy/Patcher/PackagedResourceEntry.cs | 3 +-- src/RayCarrot.RCP.Metro/Legacy/Patcher/Patch/PatchPackage.cs | 3 +-- .../Legacy/Patcher/Patch/PatchPackageChangelogEntry.cs | 3 +-- .../Legacy/Patcher/Patch/PatchPackageMetadata.cs | 3 +-- src/RayCarrot.RCP.Metro/Legacy/Patcher/PatchFilePath.cs | 1 - .../Localization/LocString/ConstLocString.cs | 3 +-- .../Localization/LocString/GeneratedLocString.cs | 3 +-- .../Localization/LocString/LocalizedString.cs | 3 +-- .../Localization/LocString/ResourceLocString.cs | 3 +-- src/RayCarrot.RCP.Metro/Localization/LocalizationManager.cs | 3 +-- src/RayCarrot.RCP.Metro/ModLoader/Modules/Deltas/DeltaChunk.cs | 3 +-- src/RayCarrot.RCP.Metro/ModLoader/Modules/Deltas/DeltaFile.cs | 3 +-- src/RayCarrot.RCP.Metro/Services/AppUI/AppUIManager.cs | 3 +-- src/RayCarrot.RCP.Metro/Services/Browse/BaseBrowseViewModel.cs | 3 +-- .../Services/Browse/Directory/DirectoryBrowserResult.cs | 3 +-- .../Services/Browse/Directory/DirectoryBrowserViewModel.cs | 3 +-- .../Services/Browse/Drive/DriveBrowserResult.cs | 3 +-- .../Services/Browse/Drive/DriveBrowserViewModel.cs | 3 +-- .../Services/Browse/File/FileBrowserResult.cs | 3 +-- .../Services/Browse/File/FileBrowserViewModel.cs | 3 +-- src/RayCarrot.RCP.Metro/Services/Browse/RCPBrowseUIManager.cs | 3 +-- .../Services/Browse/SaveFile/SaveFileResult.cs | 3 +-- .../Services/Browse/SaveFile/SaveFileViewModel.cs | 3 +-- src/RayCarrot.RCP.Metro/Services/FileManager.cs | 3 +-- src/RayCarrot.RCP.Metro/Services/Message/IMessageUIManager.cs | 3 +-- .../Services/Message/MessageUIManagerExtensions.cs | 3 +-- .../Services/WindowDialog/Control/IDialogWindowControl.cs | 3 +-- .../Services/WindowDialog/Control/IWindowControl.cs | 3 +-- .../Services/WindowDialog/Control/WindowContentControl.cs | 3 +-- .../Services/WindowDialog/Instance/ChildWindowInstance.cs | 3 +-- .../Services/WindowDialog/Instance/StandardWindowInstance.cs | 3 +-- .../Services/WindowDialog/Instance/WindowInstance.cs | 3 +-- .../Services/WindowDialog/ShowWindowFlags.cs | 3 +-- .../Services/WindowDialog/ViewModels/UserInputResult.cs | 3 +-- .../Services/WindowDialog/ViewModels/UserInputViewModel.cs | 3 +-- src/RayCarrot.RCP.Metro/UI/AttachableForStyleBehavior.cs | 3 +-- .../UI/Behaviors/DynamicTabAnimationBehavior.cs | 3 +-- src/RayCarrot.RCP.Metro/UI/Behaviors/FocusElementOnLoad.cs | 3 +-- .../UI/Behaviors/FocusScrollViewerOnLoad.cs | 3 +-- .../UI/Behaviors/ListBoxSelectedItemsBehavior.cs | 3 +-- .../UI/Behaviors/MultiSelectorSelectedItemsBehavior.cs | 3 +-- src/RayCarrot.RCP.Metro/UI/Behaviors/SubTabControlBehavior.cs | 3 +-- src/RayCarrot.RCP.Metro/UI/Behaviors/UnifiedMarginBehavior.cs | 3 +-- .../UI/Behaviors/UpdateTextBoxBindingOnEnterBehavior.cs | 3 +-- src/RayCarrot.RCP.Metro/UI/BindingProxy.cs | 3 +-- src/RayCarrot.RCP.Metro/UI/Controls/BrowseBox/BrowseBox.cs | 3 +-- src/RayCarrot.RCP.Metro/UI/Controls/DuoGrid/DuoGrid.cs | 3 +-- .../UI/Controls/DuoGrid/DuoGridItem/DuoGridItem.cs | 3 +-- src/RayCarrot.RCP.Metro/UI/Controls/MenuItemIcon.xaml.cs | 3 +-- src/RayCarrot.RCP.Metro/UI/Controls/RCPChildWindow.cs | 3 +-- src/RayCarrot.RCP.Metro/UI/Controls/RadioButtonExtended.cs | 3 +-- src/RayCarrot.RCP.Metro/UI/Controls/VMUserControl.cs | 3 +-- src/RayCarrot.RCP.Metro/UI/Controls/VMWindow.cs | 3 +-- src/RayCarrot.RCP.Metro/UI/Converters/BaseValueConverter.cs | 3 +-- .../UI/Converters/Bool/BooleanAndConverter.cs | 3 +-- .../UI/Converters/Bool/EqualsToConverter.cs | 3 +-- .../UI/Converters/Bool/InvertedBooleanConverter.cs | 3 +-- .../UI/Converters/Bool/InvertedEqualsToConverter.cs | 3 +-- .../UI/Converters/Bool/IsNotNullConverter.cs | 3 +-- src/RayCarrot.RCP.Metro/UI/Converters/Bool/IsNullConverter.cs | 3 +-- .../UI/Converters/Bool/PathExistsConverter.cs | 3 +-- .../UI/Converters/Bool/PathNotExistsConverter.cs | 3 +-- .../Other/BooleanToDataGridSelectionModeConverter.cs | 3 +-- .../UI/Converters/Other/BooleanToFluidMoveDurationConverter.cs | 3 +-- .../UI/Converters/Other/ByteEnumToIntConverter.cs | 3 +-- .../UI/Converters/Other/CultureNameToCultureInfoConverter.cs | 3 +-- .../UI/Converters/Other/EnumToIntConverter.cs | 3 +-- .../UI/Converters/Other/EnumToListConverter.cs | 3 +-- .../UI/Converters/Other/FileSystemPathToStringConverter.cs | 3 +-- .../UI/Converters/Other/GetDescendantByTypeConverter.cs | 3 +-- .../UI/Converters/Other/IntToStringConverter.cs | 3 +-- .../UI/Converters/Other/PositiveDoubleAdditionConverter.cs | 3 +-- .../UI/Converters/Other/StringToFileSystemPathConverter.cs | 3 +-- .../UI/Converters/Visibility/BooleanToVisibilityConverter.cs | 3 +-- .../Visibility/BooleanToVisibilityHiddenConverter.cs | 3 +-- .../Visibility/InvertedBooleanToVisibilityConverter.cs | 3 +-- .../Visibility/InvertedObjectNullToVisibilityConverter.cs | 3 +-- .../InvertedObjectNullToVisibilityHiddenConverter.cs | 3 +-- .../Visibility/InvertedStringEmptyToVisibilityConverter.cs | 3 +-- .../UI/Converters/Visibility/IsNotTypeToVisibilityConverter.cs | 3 +-- .../UI/Converters/Visibility/IsTypeToVisibilityConverter.cs | 3 +-- .../Converters/Visibility/ObjectNullToVisibilityConverter.cs | 3 +-- .../Converters/Visibility/StringEmptyToVisibilityConverter.cs | 3 +-- .../UI/Dialogs/Downloader/Downloader.xaml.cs | 3 +-- .../UI/Dialogs/Downloader/DownloaderResult.cs | 3 +-- .../UI/Dialogs/Downloader/DownloaderViewModel.cs | 3 +-- .../UI/Dialogs/DriveSelection/DriveSelectionDialog.xaml.cs | 3 +-- .../UI/Dialogs/DriveSelection/DriveSelectionViewModel.cs | 3 +-- .../UI/Dialogs/DriveSelection/DriveViewModel.cs | 3 +-- .../UI/Dialogs/GamesSelection/GamesSelectionResult.cs | 3 +-- .../UI/Dialogs/ItemSelection/ItemSelectionDialog.xaml.cs | 3 +-- .../UI/Dialogs/JumpListEdit/JumpListEditResult.cs | 3 +-- .../UI/Dialogs/Message/DialogMessageActionHandledEventArgs.cs | 3 +-- .../UI/Dialogs/Message/DialogMessageActionViewModel.cs | 3 +-- .../UI/Dialogs/Message/DialogMessageBox.xaml.cs | 3 +-- .../UI/Dialogs/Message/DialogMessageViewModel.cs | 3 +-- src/RayCarrot.RCP.Metro/UI/Dialogs/Message/MessageType.cs | 3 +-- .../UI/Dialogs/StringInput/StringInputDialog.xaml.cs | 3 +-- .../UI/Dialogs/StringInput/StringInputResult.cs | 3 +-- .../UI/Dialogs/StringInput/StringInputViewModel.cs | 3 +-- src/RayCarrot.RCP.Metro/UI/Taskbar/TaskbarManagerExtensions.cs | 3 +-- src/RayCarrot.RCP.Metro/UI/UserControls/AdminButton.xaml.cs | 3 +-- .../UI/UserControls/ButtonMapper/ButtonMapper.xaml.cs | 3 +-- .../ButtonMapper/ButtonMapperHotKeyValidationRule.cs | 3 +-- .../UserControls/ButtonMapper/ButtonMapperKeyItemViewModel.cs | 3 +-- .../UI/UserControls/ButtonMapper/KeyToHotKeyConverter.cs | 3 +-- .../UI/UserControls/ButtonMapper/KeyToStringConverter.cs | 3 +-- .../GraphicsModeSelection/GraphicsModeSelection.xaml.cs | 3 +-- .../GraphicsModeSelection/GraphicsModeSelectionViewModel.cs | 3 +-- .../GraphicsModeSelection/GraphicsModeToStringConverter.cs | 3 +-- .../GraphicsModeSelection/GraphicsModeValidationRule.cs | 3 +-- src/RayCarrot.RCP.Metro/UI/UserControls/InfoIcon.xaml.cs | 3 +-- .../DirectoryExistsAndNotEmptyValidationRule.cs | 3 +-- .../Files and Directories/DirectoryExistsValidationRule.cs | 3 +-- .../FileExistsAndNotEmptyValidationRule.cs | 3 +-- .../Files and Directories/FileExistsValidationRule.cs | 3 +-- .../UI/ValidationRules/NotEmptyValidationRule.cs | 3 +-- src/RayCarrot.RCP.Metro/UI/Windows/Base/BaseIconWindow.cs | 3 +-- src/RayCarrot.RCP.Metro/UI/Windows/Base/BaseWindow.cs | 3 +-- .../UI/Windows/FirstLaunchInfoDialog.xaml.cs | 3 +-- src/RayCarrot.RCP.Metro/UI/Windows/LicenseDialog.xaml.cs | 3 +-- .../UI/Windows/LogViewer/LogItemViewModel.cs | 3 +-- src/RayCarrot.RCP.Metro/UI/Windows/LogViewer/LogViewer.xaml.cs | 3 +-- .../UI/Windows/LogViewer/LogViewerViewModel.cs | 3 +-- src/RayCarrot.RCP.Metro/Updater/IUpdaterManager.cs | 3 +-- src/RayCarrot.RCP.Metro/Updater/RCPUpdaterManager.cs | 3 +-- src/RayCarrot.RCP.Metro/Updater/UpdaterCheckResult.cs | 3 +-- 207 files changed, 201 insertions(+), 408 deletions(-) diff --git a/TODO.md b/TODO.md index 9221e0295..3009826d3 100644 --- a/TODO.md +++ b/TODO.md @@ -41,7 +41,6 @@ Open with (external) -> ``` ## 🧑‍💻 Code Cleanup -- Remove remaining `#nullable disable` - these were temporarily added to every file when migrating the codebase to globally enabling nullable reference types - Be more consistent with usage of namespaces - Replace `Fody.PropertyChanged` with `MVVMToolkit` using partial properties - this requires every ViewModel class to be updated - Split localization sheet into multiple sheets for things like game titles, level names, Mod Loader, Archive Explorer etc. diff --git a/src/RayCarrot.RCP.Metro/AppData/AppUserData.Aliases.v12.0.0.cs b/src/RayCarrot.RCP.Metro/AppData/AppUserData.Aliases.v12.0.0.cs index 4c0461822..3df6cda85 100644 --- a/src/RayCarrot.RCP.Metro/AppData/AppUserData.Aliases.v12.0.0.cs +++ b/src/RayCarrot.RCP.Metro/AppData/AppUserData.Aliases.v12.0.0.cs @@ -1,5 +1,4 @@ -#nullable disable -using Newtonsoft.Json; +using Newtonsoft.Json; using PropertyChanged; using RayCarrot.RCP.Metro.Archive; diff --git a/src/RayCarrot.RCP.Metro/AppData/AppUserData.Aliases.v14.0.0.cs b/src/RayCarrot.RCP.Metro/AppData/AppUserData.Aliases.v14.0.0.cs index b9ec313a0..4e7ccb81e 100644 --- a/src/RayCarrot.RCP.Metro/AppData/AppUserData.Aliases.v14.0.0.cs +++ b/src/RayCarrot.RCP.Metro/AppData/AppUserData.Aliases.v14.0.0.cs @@ -1,5 +1,4 @@ -#nullable disable -using Newtonsoft.Json; +using Newtonsoft.Json; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/AppData/AppUserData.cs b/src/RayCarrot.RCP.Metro/AppData/AppUserData.cs index 42207510e..dfcd08c9a 100644 --- a/src/RayCarrot.RCP.Metro/AppData/AppUserData.cs +++ b/src/RayCarrot.RCP.Metro/AppData/AppUserData.cs @@ -1,4 +1,3 @@ -#nullable disable using System.Reflection; using RayCarrot.RCP.Metro.Archive; using RayCarrot.RCP.Metro.Archive.CPA; diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/GAM_DisplayFixMode.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/GAM_DisplayFixMode.cs index 983f0ef09..8b5e08b72 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/GAM_DisplayFixMode.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/GAM_DisplayFixMode.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; [Flags] public enum GAM_DisplayFixMode : byte diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/GAM_EngineMode.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/GAM_EngineMode.cs index 0979ae584..9b761d86d 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/GAM_EngineMode.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/GAM_EngineMode.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; public enum GAM_EngineMode : byte { diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/GAM_EngineStructure.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/GAM_EngineStructure.cs index 01c104579..14571a510 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/GAM_EngineStructure.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/GAM_EngineStructure.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/IPT_InputMode.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/IPT_InputMode.cs index e20928cb7..b830e0db5 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/IPT_InputMode.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/IPT_InputMode.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; public enum IPT_InputMode : byte { diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/CPAPs1SaveBlock.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/CPAPs1SaveBlock.cs index 245ed7f98..3ce3ccb42 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/CPAPs1SaveBlock.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/CPAPs1SaveBlock.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock1.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock1.cs index ebaa37943..359a2c363 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock1.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock1.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock2.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock2.cs index c1abffe91..2a0ff95ea 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock2.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock2.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock3.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock3.cs index b2a836e4d..716887db9 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock3.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock3.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveData.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveData.cs index eb9706c1e..bc8c86944 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveData.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveData.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushLevelSave.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushLevelSave.cs index 3a929feff..0269206d6 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushLevelSave.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushLevelSave.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveBlock1.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveBlock1.cs index 8adceeeb9..05e29ccf3 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveBlock1.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveBlock1.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveBlock2.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveBlock2.cs index ec0774458..56d5d67af 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveBlock2.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveBlock2.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveBlock3.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveBlock3.cs index 6d5d4b803..927406ba5 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveBlock3.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveBlock3.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveData.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveData.cs index 50f1098b8..2db1fc58f 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveData.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveData.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/PS2/Rayman2Ps2SaveData.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/PS2/Rayman2Ps2SaveData.cs index 8298d1764..d92e2c5e6 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/PS2/Rayman2Ps2SaveData.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/PS2/Rayman2Ps2SaveData.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/PS2/Rayman2Ps2SaveInfo.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/PS2/Rayman2Ps2SaveInfo.cs index 662eb5901..1fd7d5707 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/PS2/Rayman2Ps2SaveInfo.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/PS2/Rayman2Ps2SaveInfo.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/GameMaker/GameMaker_DSMap.cs b/src/RayCarrot.RCP.Metro/Binary/GameMaker/GameMaker_DSMap.cs index 85bfde8a3..6cbdcded5 100644 --- a/src/RayCarrot.RCP.Metro/Binary/GameMaker/GameMaker_DSMap.cs +++ b/src/RayCarrot.RCP.Metro/Binary/GameMaker/GameMaker_DSMap.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/GameMaker/GameMaker_DSMapDataObject.cs b/src/RayCarrot.RCP.Metro/Binary/GameMaker/GameMaker_DSMapDataObject.cs index 49387ab27..c784abcf0 100644 --- a/src/RayCarrot.RCP.Metro/Binary/GameMaker/GameMaker_DSMapDataObject.cs +++ b/src/RayCarrot.RCP.Metro/Binary/GameMaker/GameMaker_DSMapDataObject.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Text; +using System.Text; using BinarySerializer; using Newtonsoft.Json; diff --git a/src/RayCarrot.RCP.Metro/Binary/GameMaker/GameMaker_DSMapEntry.cs b/src/RayCarrot.RCP.Metro/Binary/GameMaker/GameMaker_DSMapEntry.cs index 36e7c9906..2f3b632b1 100644 --- a/src/RayCarrot.RCP.Metro/Binary/GameMaker/GameMaker_DSMapEntry.cs +++ b/src/RayCarrot.RCP.Metro/Binary/GameMaker/GameMaker_DSMapEntry.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/Gba/R3/R3GBA_SaveData.cs b/src/RayCarrot.RCP.Metro/Binary/Gba/R3/R3GBA_SaveData.cs index 30bf7ad36..b301fead0 100644 --- a/src/RayCarrot.RCP.Metro/Binary/Gba/R3/R3GBA_SaveData.cs +++ b/src/RayCarrot.RCP.Metro/Binary/Gba/R3/R3GBA_SaveData.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/Gba/R3/R3GBA_SaveSlot.cs b/src/RayCarrot.RCP.Metro/Binary/Gba/R3/R3GBA_SaveSlot.cs index ab6040884..57e3ba695 100644 --- a/src/RayCarrot.RCP.Metro/Binary/Gba/R3/R3GBA_SaveSlot.cs +++ b/src/RayCarrot.RCP.Metro/Binary/Gba/R3/R3GBA_SaveSlot.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_Highscore.cs b/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_Highscore.cs index f7530383b..3bef8ebb6 100644 --- a/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_Highscore.cs +++ b/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_Highscore.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_LevelSave.cs b/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_LevelSave.cs index 605aaae1d..3d332c12b 100644 --- a/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_LevelSave.cs +++ b/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_LevelSave.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_SaveData.cs b/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_SaveData.cs index 01c837885..0b121aa50 100644 --- a/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_SaveData.cs +++ b/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_SaveData.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_SaveSlot.cs b/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_SaveSlot.cs index 24125889d..789d3253b 100644 --- a/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_SaveSlot.cs +++ b/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_SaveSlot.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/Gba/RRR/RRRGBA_SaveData.cs b/src/RayCarrot.RCP.Metro/Binary/Gba/RRR/RRRGBA_SaveData.cs index 226b3de55..5109ac483 100644 --- a/src/RayCarrot.RCP.Metro/Binary/Gba/RRR/RRRGBA_SaveData.cs +++ b/src/RayCarrot.RCP.Metro/Binary/Gba/RRR/RRRGBA_SaveData.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/Gba/RRR/RRRGBA_SaveSlot.cs b/src/RayCarrot.RCP.Metro/Binary/Gba/RRR/RRRGBA_SaveSlot.cs index bf7a8f23e..3863912c3 100644 --- a/src/RayCarrot.RCP.Metro/Binary/Gba/RRR/RRRGBA_SaveSlot.cs +++ b/src/RayCarrot.RCP.Metro/Binary/Gba/RRR/RRRGBA_SaveSlot.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/Jade/Jade_BIG_BigFile.cs b/src/RayCarrot.RCP.Metro/Binary/Jade/Jade_BIG_BigFile.cs index 6bfb5e68e..426e8dd77 100644 --- a/src/RayCarrot.RCP.Metro/Binary/Jade/Jade_BIG_BigFile.cs +++ b/src/RayCarrot.RCP.Metro/Binary/Jade/Jade_BIG_BigFile.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/Jade/Jade_BIG_FatFile.cs b/src/RayCarrot.RCP.Metro/Binary/Jade/Jade_BIG_FatFile.cs index 1a12fd661..7087a255d 100644 --- a/src/RayCarrot.RCP.Metro/Binary/Jade/Jade_BIG_FatFile.cs +++ b/src/RayCarrot.RCP.Metro/Binary/Jade/Jade_BIG_FatFile.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/PS1ISO/PS1ISO.cs b/src/RayCarrot.RCP.Metro/Binary/PS1ISO/PS1ISO.cs index ebadef512..7939ba3ad 100644 --- a/src/RayCarrot.RCP.Metro/Binary/PS1ISO/PS1ISO.cs +++ b/src/RayCarrot.RCP.Metro/Binary/PS1ISO/PS1ISO.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; using BinarySerializer.Disk.ISO9660; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/PS1ISO/PS1ISOLicense.cs b/src/RayCarrot.RCP.Metro/Binary/PS1ISO/PS1ISOLicense.cs index 55918634d..0357bb63c 100644 --- a/src/RayCarrot.RCP.Metro/Binary/PS1ISO/PS1ISOLicense.cs +++ b/src/RayCarrot.RCP.Metro/Binary/PS1ISO/PS1ISOLicense.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/ProcessMemoryStreamFile.cs b/src/RayCarrot.RCP.Metro/Binary/ProcessMemoryStreamFile.cs index a8514d9ac..48c75439e 100644 --- a/src/RayCarrot.RCP.Metro/Binary/ProcessMemoryStreamFile.cs +++ b/src/RayCarrot.RCP.Metro/Binary/ProcessMemoryStreamFile.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.IO; +using System.IO; using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SavSlotDesc.cs b/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SavSlotDesc.cs index 535f577af..a0be78e43 100644 --- a/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SavSlotDesc.cs +++ b/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SavSlotDesc.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SaveFile.cs b/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SaveFile.cs index ba8a29103..40899a166 100644 --- a/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SaveFile.cs +++ b/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SaveFile.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SaveSlot.cs b/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SaveSlot.cs index dac74f797..4b31f357c 100644 --- a/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SaveSlot.cs +++ b/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SaveSlot.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_UniversSave.cs b/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_UniversSave.cs index dc86fa192..68d73c27e 100644 --- a/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_UniversSave.cs +++ b/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_UniversSave.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_MiniGame.cs b/src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_MiniGame.cs index 9c631bb03..cf0c2aeb3 100644 --- a/src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_MiniGame.cs +++ b/src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_MiniGame.cs @@ -1,4 +1,3 @@ -#nullable disable using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_SaveFile.cs b/src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_SaveFile.cs index 2f142fdad..661a9fc30 100644 --- a/src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_SaveFile.cs +++ b/src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_SaveFile.cs @@ -1,4 +1,3 @@ -#nullable disable using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_ScoreEntry.cs b/src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_ScoreEntry.cs index b5caa0797..e54985040 100644 --- a/src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_ScoreEntry.cs +++ b/src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_ScoreEntry.cs @@ -1,4 +1,3 @@ -#nullable disable using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/Ubisoft/UPC_StorageFile.cs b/src/RayCarrot.RCP.Metro/Binary/Ubisoft/UPC_StorageFile.cs index e3267d75c..b114752fb 100644 --- a/src/RayCarrot.RCP.Metro/Binary/Ubisoft/UPC_StorageFile.cs +++ b/src/RayCarrot.RCP.Metro/Binary/Ubisoft/UPC_StorageFile.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/Unity/Unity_PlayerPrefs.cs b/src/RayCarrot.RCP.Metro/Binary/Unity/Unity_PlayerPrefs.cs index b868a10a5..6f8a4d286 100644 --- a/src/RayCarrot.RCP.Metro/Binary/Unity/Unity_PlayerPrefs.cs +++ b/src/RayCarrot.RCP.Metro/Binary/Unity/Unity_PlayerPrefs.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/Unity/Unity_PlayerPrefsEntry.cs b/src/RayCarrot.RCP.Metro/Binary/Unity/Unity_PlayerPrefsEntry.cs index a3fa262f8..fa513633b 100644 --- a/src/RayCarrot.RCP.Metro/Binary/Unity/Unity_PlayerPrefsEntry.cs +++ b/src/RayCarrot.RCP.Metro/Binary/Unity/Unity_PlayerPrefsEntry.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Text; +using System.Text; using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Helpers/Extensions/EnumExtensions.cs b/src/RayCarrot.RCP.Metro/Helpers/Extensions/EnumExtensions.cs index e5dc64975..e4a24baba 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/Extensions/EnumExtensions.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/Extensions/EnumExtensions.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Reflection; +using System.Reflection; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Helpers/Extensions/EnumerableExtensions.cs b/src/RayCarrot.RCP.Metro/Helpers/Extensions/EnumerableExtensions.cs index cf940ccbd..ce97683d8 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/Extensions/EnumerableExtensions.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/Extensions/EnumerableExtensions.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// Extension methods for an diff --git a/src/RayCarrot.RCP.Metro/Helpers/Extensions/ObjectExtensions.cs b/src/RayCarrot.RCP.Metro/Helpers/Extensions/ObjectExtensions.cs index 1589501f2..cbaba69cc 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/Extensions/ObjectExtensions.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/Extensions/ObjectExtensions.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// Extension methods for an diff --git a/src/RayCarrot.RCP.Metro/Helpers/Extensions/StringExtensions.cs b/src/RayCarrot.RCP.Metro/Helpers/Extensions/StringExtensions.cs index 1cab2ff02..a83b30af9 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/Extensions/StringExtensions.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/Extensions/StringExtensions.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Diagnostics.CodeAnalysis; +using System.Diagnostics.CodeAnalysis; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Helpers/Extensions/TaskExtensions.cs b/src/RayCarrot.RCP.Metro/Helpers/Extensions/TaskExtensions.cs index 40dbb9853..5e9c1f527 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/Extensions/TaskExtensions.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/Extensions/TaskExtensions.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; public static class TaskExtensions { diff --git a/src/RayCarrot.RCP.Metro/Helpers/Extensions/VisualExtensions.cs b/src/RayCarrot.RCP.Metro/Helpers/Extensions/VisualExtensions.cs index 3391db4ec..68c5118ef 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/Extensions/VisualExtensions.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/Extensions/VisualExtensions.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Windows; +using System.Windows; using System.Windows.Media; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Helpers/Extensions/WindowExtensions.cs b/src/RayCarrot.RCP.Metro/Helpers/Extensions/WindowExtensions.cs index 92ce3d13f..af58be058 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/Extensions/WindowExtensions.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/Extensions/WindowExtensions.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Reflection; +using System.Reflection; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Helpers/JsonConverters/ByteArrayHexConverter.cs b/src/RayCarrot.RCP.Metro/Helpers/JsonConverters/ByteArrayHexConverter.cs index 73e00a5c9..f31eb6f7d 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/JsonConverters/ByteArrayHexConverter.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/JsonConverters/ByteArrayHexConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; using Newtonsoft.Json; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Helpers/JsonConverters/SimpleTypeConverter.cs b/src/RayCarrot.RCP.Metro/Helpers/JsonConverters/SimpleTypeConverter.cs index d1b38ae5f..321e2f3e1 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/JsonConverters/SimpleTypeConverter.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/JsonConverters/SimpleTypeConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Reflection; +using System.Reflection; using Newtonsoft.Json; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Helpers/JsonHelpers.cs b/src/RayCarrot.RCP.Metro/Helpers/JsonHelpers.cs index ee760866c..8318223d9 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/JsonHelpers.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/JsonHelpers.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.IO; +using System.IO; using System.Net; using System.Text; using Newtonsoft.Json; diff --git a/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/IStatusUpdated.cs b/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/IStatusUpdated.cs index d2528d885..ba8805061 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/IStatusUpdated.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/IStatusUpdated.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// Contains information for keeping track of the status of a running operation diff --git a/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/ItemsOperationProgress.cs b/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/ItemsOperationProgress.cs index 23ef0467e..47f907e51 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/ItemsOperationProgress.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/ItemsOperationProgress.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// Contains information for an item during an ongoing operation diff --git a/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/OperationProgressEventArgs.cs b/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/OperationProgressEventArgs.cs index 9a1c73455..785d0c42e 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/OperationProgressEventArgs.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/OperationProgressEventArgs.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// Event arguments for events during an operation diff --git a/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/OperationState.cs b/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/OperationState.cs index 82c94ede8..2b976eb78 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/OperationState.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/OperationState.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// The available states of an ongoing operation diff --git a/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/Progress.cs b/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/Progress.cs index 61d3cc9d2..bd1556068 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/Progress.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/Progress.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Diagnostics; +using System.Diagnostics; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Helpers/Patcher/FilePatcher.cs b/src/RayCarrot.RCP.Metro/Helpers/Patcher/FilePatcher.cs index 6845ea54c..8ef1a9689 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/Patcher/FilePatcher.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/Patcher/FilePatcher.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.IO; +using System.IO; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Helpers/Patcher/FilePatcher_Patch.cs b/src/RayCarrot.RCP.Metro/Helpers/Patcher/FilePatcher_Patch.cs index bb9d76bb7..d580bd22b 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/Patcher/FilePatcher_Patch.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/Patcher/FilePatcher_Patch.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// Data for the diff --git a/src/RayCarrot.RCP.Metro/Helpers/Windows/ShellThumbnailExtensions.cs b/src/RayCarrot.RCP.Metro/Helpers/Windows/ShellThumbnailExtensions.cs index 6df081970..3ed9284fa 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/Windows/ShellThumbnailExtensions.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/Windows/ShellThumbnailExtensions.cs @@ -1,5 +1,4 @@ -#nullable disable -using Microsoft.WindowsAPICodePack.Shell; +using Microsoft.WindowsAPICodePack.Shell; using System.Drawing; using System.Drawing.Imaging; using System.Runtime.InteropServices; diff --git a/src/RayCarrot.RCP.Metro/Helpers/Windows/ShellThumbnailSize.cs b/src/RayCarrot.RCP.Metro/Helpers/Windows/ShellThumbnailSize.cs index 5ba5e9221..66d7b3122 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/Windows/ShellThumbnailSize.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/Windows/ShellThumbnailSize.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// The available shell thumbnail and icon sizes diff --git a/src/RayCarrot.RCP.Metro/Helpers/Windows/WindowsHelpers.cs b/src/RayCarrot.RCP.Metro/Helpers/Windows/WindowsHelpers.cs index b731130db..afb84d7f2 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/Windows/WindowsHelpers.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/Windows/WindowsHelpers.cs @@ -1,5 +1,4 @@ -#nullable disable -using IWshRuntimeLibrary; +using IWshRuntimeLibrary; using System.ComponentModel; using System.Diagnostics; using System.Drawing; diff --git a/src/RayCarrot.RCP.Metro/IO/FileSystemPath/FileSystemPathConverter.cs b/src/RayCarrot.RCP.Metro/IO/FileSystemPath/FileSystemPathConverter.cs index ec81af004..b9ee30f10 100644 --- a/src/RayCarrot.RCP.Metro/IO/FileSystemPath/FileSystemPathConverter.cs +++ b/src/RayCarrot.RCP.Metro/IO/FileSystemPath/FileSystemPathConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.ComponentModel; +using System.ComponentModel; using System.Globalization; using System.IO; diff --git a/src/RayCarrot.RCP.Metro/IO/FileSystemPath/FileSystemPathExtensions.cs b/src/RayCarrot.RCP.Metro/IO/FileSystemPath/FileSystemPathExtensions.cs index d65c54c8f..7c5d779d6 100644 --- a/src/RayCarrot.RCP.Metro/IO/FileSystemPath/FileSystemPathExtensions.cs +++ b/src/RayCarrot.RCP.Metro/IO/FileSystemPath/FileSystemPathExtensions.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.IO; +using System.IO; using System.Security.Cryptography; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Installer/GameInstaller.cs b/src/RayCarrot.RCP.Metro/Installer/GameInstaller.cs index 94a1fab47..8b810355c 100644 --- a/src/RayCarrot.RCP.Metro/Installer/GameInstaller.cs +++ b/src/RayCarrot.RCP.Metro/Installer/GameInstaller.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.IO; +using System.IO; using System.Net; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Installer/GameInstallerDialog.xaml.cs b/src/RayCarrot.RCP.Metro/Installer/GameInstallerDialog.xaml.cs index d91b403ca..8f11b7aba 100644 --- a/src/RayCarrot.RCP.Metro/Installer/GameInstallerDialog.xaml.cs +++ b/src/RayCarrot.RCP.Metro/Installer/GameInstallerDialog.xaml.cs @@ -1,5 +1,4 @@ -#nullable disable -using Microsoft.WindowsAPICodePack.Taskbar; +using Microsoft.WindowsAPICodePack.Taskbar; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Installer/GameInstaller_Data.cs b/src/RayCarrot.RCP.Metro/Installer/GameInstaller_Data.cs index eae7beb82..4929f6898 100644 --- a/src/RayCarrot.RCP.Metro/Installer/GameInstaller_Data.cs +++ b/src/RayCarrot.RCP.Metro/Installer/GameInstaller_Data.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// Install data for installing a game diff --git a/src/RayCarrot.RCP.Metro/Installer/GameInstaller_DriveInfo.cs b/src/RayCarrot.RCP.Metro/Installer/GameInstaller_DriveInfo.cs index dd46f69b9..70265f384 100644 --- a/src/RayCarrot.RCP.Metro/Installer/GameInstaller_DriveInfo.cs +++ b/src/RayCarrot.RCP.Metro/Installer/GameInstaller_DriveInfo.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.IO; +using System.IO; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Installer/GameInstaller_Item.cs b/src/RayCarrot.RCP.Metro/Installer/GameInstaller_Item.cs index 5a46d378b..e7aad0070 100644 --- a/src/RayCarrot.RCP.Metro/Installer/GameInstaller_Item.cs +++ b/src/RayCarrot.RCP.Metro/Installer/GameInstaller_Item.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.IO; +using System.IO; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Installer/GameInstaller_ItemStage.cs b/src/RayCarrot.RCP.Metro/Installer/GameInstaller_ItemStage.cs index 4046bf59f..1d77a5d01 100644 --- a/src/RayCarrot.RCP.Metro/Installer/GameInstaller_ItemStage.cs +++ b/src/RayCarrot.RCP.Metro/Installer/GameInstaller_ItemStage.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// The specific stage of an item during a game installation diff --git a/src/RayCarrot.RCP.Metro/Installer/GameInstaller_Result.cs b/src/RayCarrot.RCP.Metro/Installer/GameInstaller_Result.cs index f41a7fbda..56ab44e81 100644 --- a/src/RayCarrot.RCP.Metro/Installer/GameInstaller_Result.cs +++ b/src/RayCarrot.RCP.Metro/Installer/GameInstaller_Result.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// The result for a game installation diff --git a/src/RayCarrot.RCP.Metro/Installer/Games/InstallerGames.Designer.cs b/src/RayCarrot.RCP.Metro/Installer/Games/InstallerGames.Designer.cs index 7b4864750..807467d1b 100644 --- a/src/RayCarrot.RCP.Metro/Installer/Games/InstallerGames.Designer.cs +++ b/src/RayCarrot.RCP.Metro/Installer/Games/InstallerGames.Designer.cs @@ -1,5 +1,4 @@ -#nullable disable -//------------------------------------------------------------------------------ +//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.42000 diff --git a/src/RayCarrot.RCP.Metro/Legacy/Patcher/Library/PatchLibraryPackage.cs b/src/RayCarrot.RCP.Metro/Legacy/Patcher/Library/PatchLibraryPackage.cs index 5e1f0981b..f10443d2c 100644 --- a/src/RayCarrot.RCP.Metro/Legacy/Patcher/Library/PatchLibraryPackage.cs +++ b/src/RayCarrot.RCP.Metro/Legacy/Patcher/Library/PatchLibraryPackage.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Text; +using System.Text; using BinarySerializer; namespace RayCarrot.RCP.Metro.Legacy.Patcher; diff --git a/src/RayCarrot.RCP.Metro/Legacy/Patcher/Library/PatchLibraryPackageHistory.cs b/src/RayCarrot.RCP.Metro/Legacy/Patcher/Library/PatchLibraryPackageHistory.cs index c6d8689c1..9479bcfa1 100644 --- a/src/RayCarrot.RCP.Metro/Legacy/Patcher/Library/PatchLibraryPackageHistory.cs +++ b/src/RayCarrot.RCP.Metro/Legacy/Patcher/Library/PatchLibraryPackageHistory.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro.Legacy.Patcher; diff --git a/src/RayCarrot.RCP.Metro/Legacy/Patcher/Library/PatchLibraryPackagePatchEntry.cs b/src/RayCarrot.RCP.Metro/Legacy/Patcher/Library/PatchLibraryPackagePatchEntry.cs index f46de2c5b..6648bc23e 100644 --- a/src/RayCarrot.RCP.Metro/Legacy/Patcher/Library/PatchLibraryPackagePatchEntry.cs +++ b/src/RayCarrot.RCP.Metro/Legacy/Patcher/Library/PatchLibraryPackagePatchEntry.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro.Legacy.Patcher; diff --git a/src/RayCarrot.RCP.Metro/Legacy/Patcher/PackagedResourceChecksum.cs b/src/RayCarrot.RCP.Metro/Legacy/Patcher/PackagedResourceChecksum.cs index 8f197ae2e..2dd8bd9cf 100644 --- a/src/RayCarrot.RCP.Metro/Legacy/Patcher/PackagedResourceChecksum.cs +++ b/src/RayCarrot.RCP.Metro/Legacy/Patcher/PackagedResourceChecksum.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.IO; +using System.IO; using System.Security.Cryptography; using BinarySerializer; diff --git a/src/RayCarrot.RCP.Metro/Legacy/Patcher/PackagedResourceEntry.cs b/src/RayCarrot.RCP.Metro/Legacy/Patcher/PackagedResourceEntry.cs index df8911043..cc2358d37 100644 --- a/src/RayCarrot.RCP.Metro/Legacy/Patcher/PackagedResourceEntry.cs +++ b/src/RayCarrot.RCP.Metro/Legacy/Patcher/PackagedResourceEntry.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.IO; +using System.IO; using System.IO.Compression; using BinarySerializer; diff --git a/src/RayCarrot.RCP.Metro/Legacy/Patcher/Patch/PatchPackage.cs b/src/RayCarrot.RCP.Metro/Legacy/Patcher/Patch/PatchPackage.cs index a9c14105e..10052d49d 100644 --- a/src/RayCarrot.RCP.Metro/Legacy/Patcher/Patch/PatchPackage.cs +++ b/src/RayCarrot.RCP.Metro/Legacy/Patcher/Patch/PatchPackage.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Text; +using System.Text; using BinarySerializer; namespace RayCarrot.RCP.Metro.Legacy.Patcher; diff --git a/src/RayCarrot.RCP.Metro/Legacy/Patcher/Patch/PatchPackageChangelogEntry.cs b/src/RayCarrot.RCP.Metro/Legacy/Patcher/Patch/PatchPackageChangelogEntry.cs index 82f3bea02..7a4726292 100644 --- a/src/RayCarrot.RCP.Metro/Legacy/Patcher/Patch/PatchPackageChangelogEntry.cs +++ b/src/RayCarrot.RCP.Metro/Legacy/Patcher/Patch/PatchPackageChangelogEntry.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro.Legacy.Patcher; diff --git a/src/RayCarrot.RCP.Metro/Legacy/Patcher/Patch/PatchPackageMetadata.cs b/src/RayCarrot.RCP.Metro/Legacy/Patcher/Patch/PatchPackageMetadata.cs index 4b85519a3..744235d52 100644 --- a/src/RayCarrot.RCP.Metro/Legacy/Patcher/Patch/PatchPackageMetadata.cs +++ b/src/RayCarrot.RCP.Metro/Legacy/Patcher/Patch/PatchPackageMetadata.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro.Legacy.Patcher; diff --git a/src/RayCarrot.RCP.Metro/Legacy/Patcher/PatchFilePath.cs b/src/RayCarrot.RCP.Metro/Legacy/Patcher/PatchFilePath.cs index d76d2e600..90920150b 100644 --- a/src/RayCarrot.RCP.Metro/Legacy/Patcher/PatchFilePath.cs +++ b/src/RayCarrot.RCP.Metro/Legacy/Patcher/PatchFilePath.cs @@ -3,7 +3,6 @@ namespace RayCarrot.RCP.Metro.Legacy.Patcher; -#nullable disable public class PatchFilePath : BinarySerializable { diff --git a/src/RayCarrot.RCP.Metro/Localization/LocString/ConstLocString.cs b/src/RayCarrot.RCP.Metro/Localization/LocString/ConstLocString.cs index b343fcea6..ad96236de 100644 --- a/src/RayCarrot.RCP.Metro/Localization/LocString/ConstLocString.cs +++ b/src/RayCarrot.RCP.Metro/Localization/LocString/ConstLocString.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; public class ConstLocString : LocalizedString { diff --git a/src/RayCarrot.RCP.Metro/Localization/LocString/GeneratedLocString.cs b/src/RayCarrot.RCP.Metro/Localization/LocString/GeneratedLocString.cs index a8647671a..9faf2ac48 100644 --- a/src/RayCarrot.RCP.Metro/Localization/LocString/GeneratedLocString.cs +++ b/src/RayCarrot.RCP.Metro/Localization/LocString/GeneratedLocString.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// A localized string which gets generated from a func when the culture changes diff --git a/src/RayCarrot.RCP.Metro/Localization/LocString/LocalizedString.cs b/src/RayCarrot.RCP.Metro/Localization/LocString/LocalizedString.cs index 29c14989d..03be8fcb1 100644 --- a/src/RayCarrot.RCP.Metro/Localization/LocString/LocalizedString.cs +++ b/src/RayCarrot.RCP.Metro/Localization/LocString/LocalizedString.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Localization/LocString/ResourceLocString.cs b/src/RayCarrot.RCP.Metro/Localization/LocString/ResourceLocString.cs index 370a31b9e..ea948fbbd 100644 --- a/src/RayCarrot.RCP.Metro/Localization/LocString/ResourceLocString.cs +++ b/src/RayCarrot.RCP.Metro/Localization/LocString/ResourceLocString.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; public class ResourceLocString : LocalizedString { diff --git a/src/RayCarrot.RCP.Metro/Localization/LocalizationManager.cs b/src/RayCarrot.RCP.Metro/Localization/LocalizationManager.cs index eab6fa9e4..4ba20d669 100644 --- a/src/RayCarrot.RCP.Metro/Localization/LocalizationManager.cs +++ b/src/RayCarrot.RCP.Metro/Localization/LocalizationManager.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; using System.Windows; using Infralution.Localization.Wpf; diff --git a/src/RayCarrot.RCP.Metro/ModLoader/Modules/Deltas/DeltaChunk.cs b/src/RayCarrot.RCP.Metro/ModLoader/Modules/Deltas/DeltaChunk.cs index 1f46ae6a3..a66b18753 100644 --- a/src/RayCarrot.RCP.Metro/ModLoader/Modules/Deltas/DeltaChunk.cs +++ b/src/RayCarrot.RCP.Metro/ModLoader/Modules/Deltas/DeltaChunk.cs @@ -1,5 +1,4 @@ -#nullable disable -using BinarySerializer; +using BinarySerializer; namespace RayCarrot.RCP.Metro.ModLoader.Modules.Deltas; diff --git a/src/RayCarrot.RCP.Metro/ModLoader/Modules/Deltas/DeltaFile.cs b/src/RayCarrot.RCP.Metro/ModLoader/Modules/Deltas/DeltaFile.cs index 678bfd8a8..15958729a 100644 --- a/src/RayCarrot.RCP.Metro/ModLoader/Modules/Deltas/DeltaFile.cs +++ b/src/RayCarrot.RCP.Metro/ModLoader/Modules/Deltas/DeltaFile.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.IO; +using System.IO; using BinarySerializer; namespace RayCarrot.RCP.Metro.ModLoader.Modules.Deltas; diff --git a/src/RayCarrot.RCP.Metro/Services/AppUI/AppUIManager.cs b/src/RayCarrot.RCP.Metro/Services/AppUI/AppUIManager.cs index 497a1dbc7..e214e1a3f 100644 --- a/src/RayCarrot.RCP.Metro/Services/AppUI/AppUIManager.cs +++ b/src/RayCarrot.RCP.Metro/Services/AppUI/AppUIManager.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.IO; +using System.IO; using System.Net.Http; using System.Runtime.CompilerServices; using System.Windows; diff --git a/src/RayCarrot.RCP.Metro/Services/Browse/BaseBrowseViewModel.cs b/src/RayCarrot.RCP.Metro/Services/Browse/BaseBrowseViewModel.cs index fcc8cb02a..6bf16fae0 100644 --- a/src/RayCarrot.RCP.Metro/Services/Browse/BaseBrowseViewModel.cs +++ b/src/RayCarrot.RCP.Metro/Services/Browse/BaseBrowseViewModel.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// A base class for browse view models diff --git a/src/RayCarrot.RCP.Metro/Services/Browse/Directory/DirectoryBrowserResult.cs b/src/RayCarrot.RCP.Metro/Services/Browse/Directory/DirectoryBrowserResult.cs index 10dd9360a..c2290c2ec 100644 --- a/src/RayCarrot.RCP.Metro/Services/Browse/Directory/DirectoryBrowserResult.cs +++ b/src/RayCarrot.RCP.Metro/Services/Browse/Directory/DirectoryBrowserResult.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// The result when browsing for a directory diff --git a/src/RayCarrot.RCP.Metro/Services/Browse/Directory/DirectoryBrowserViewModel.cs b/src/RayCarrot.RCP.Metro/Services/Browse/Directory/DirectoryBrowserViewModel.cs index 6a2f9f3f5..dca5896a8 100644 --- a/src/RayCarrot.RCP.Metro/Services/Browse/Directory/DirectoryBrowserViewModel.cs +++ b/src/RayCarrot.RCP.Metro/Services/Browse/Directory/DirectoryBrowserViewModel.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// A model to use when browsing for a directory diff --git a/src/RayCarrot.RCP.Metro/Services/Browse/Drive/DriveBrowserResult.cs b/src/RayCarrot.RCP.Metro/Services/Browse/Drive/DriveBrowserResult.cs index c59742a0d..8f424be00 100644 --- a/src/RayCarrot.RCP.Metro/Services/Browse/Drive/DriveBrowserResult.cs +++ b/src/RayCarrot.RCP.Metro/Services/Browse/Drive/DriveBrowserResult.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// The result when browsing for a drive diff --git a/src/RayCarrot.RCP.Metro/Services/Browse/Drive/DriveBrowserViewModel.cs b/src/RayCarrot.RCP.Metro/Services/Browse/Drive/DriveBrowserViewModel.cs index 76d8b6df3..cdc5746ef 100644 --- a/src/RayCarrot.RCP.Metro/Services/Browse/Drive/DriveBrowserViewModel.cs +++ b/src/RayCarrot.RCP.Metro/Services/Browse/Drive/DriveBrowserViewModel.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.IO; +using System.IO; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Services/Browse/File/FileBrowserResult.cs b/src/RayCarrot.RCP.Metro/Services/Browse/File/FileBrowserResult.cs index 94fbb5107..304f2bad3 100644 --- a/src/RayCarrot.RCP.Metro/Services/Browse/File/FileBrowserResult.cs +++ b/src/RayCarrot.RCP.Metro/Services/Browse/File/FileBrowserResult.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// The result when browsing for a directory diff --git a/src/RayCarrot.RCP.Metro/Services/Browse/File/FileBrowserViewModel.cs b/src/RayCarrot.RCP.Metro/Services/Browse/File/FileBrowserViewModel.cs index c9d63aaa2..a0dd4d0ef 100644 --- a/src/RayCarrot.RCP.Metro/Services/Browse/File/FileBrowserViewModel.cs +++ b/src/RayCarrot.RCP.Metro/Services/Browse/File/FileBrowserViewModel.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// A model to use when browsing for a file diff --git a/src/RayCarrot.RCP.Metro/Services/Browse/RCPBrowseUIManager.cs b/src/RayCarrot.RCP.Metro/Services/Browse/RCPBrowseUIManager.cs index b9bce4a2d..c296ee5ff 100644 --- a/src/RayCarrot.RCP.Metro/Services/Browse/RCPBrowseUIManager.cs +++ b/src/RayCarrot.RCP.Metro/Services/Browse/RCPBrowseUIManager.cs @@ -1,5 +1,4 @@ -#nullable disable -using Microsoft.Win32; +using Microsoft.Win32; using Microsoft.WindowsAPICodePack.Dialogs; using System.Windows; diff --git a/src/RayCarrot.RCP.Metro/Services/Browse/SaveFile/SaveFileResult.cs b/src/RayCarrot.RCP.Metro/Services/Browse/SaveFile/SaveFileResult.cs index 87ea0666e..467b16554 100644 --- a/src/RayCarrot.RCP.Metro/Services/Browse/SaveFile/SaveFileResult.cs +++ b/src/RayCarrot.RCP.Metro/Services/Browse/SaveFile/SaveFileResult.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// The result when saving a file diff --git a/src/RayCarrot.RCP.Metro/Services/Browse/SaveFile/SaveFileViewModel.cs b/src/RayCarrot.RCP.Metro/Services/Browse/SaveFile/SaveFileViewModel.cs index e77c42182..c6e5957e2 100644 --- a/src/RayCarrot.RCP.Metro/Services/Browse/SaveFile/SaveFileViewModel.cs +++ b/src/RayCarrot.RCP.Metro/Services/Browse/SaveFile/SaveFileViewModel.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// The model to use when saving a file diff --git a/src/RayCarrot.RCP.Metro/Services/FileManager.cs b/src/RayCarrot.RCP.Metro/Services/FileManager.cs index edf1ccf78..fa2cd3363 100644 --- a/src/RayCarrot.RCP.Metro/Services/FileManager.cs +++ b/src/RayCarrot.RCP.Metro/Services/FileManager.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Diagnostics; +using System.Diagnostics; using System.IO; using System.Security.AccessControl; using System.Security.Principal; diff --git a/src/RayCarrot.RCP.Metro/Services/Message/IMessageUIManager.cs b/src/RayCarrot.RCP.Metro/Services/Message/IMessageUIManager.cs index 329a8e6c5..1c37430f3 100644 --- a/src/RayCarrot.RCP.Metro/Services/Message/IMessageUIManager.cs +++ b/src/RayCarrot.RCP.Metro/Services/Message/IMessageUIManager.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// A message UI Manager for managing message UI requests diff --git a/src/RayCarrot.RCP.Metro/Services/Message/MessageUIManagerExtensions.cs b/src/RayCarrot.RCP.Metro/Services/Message/MessageUIManagerExtensions.cs index 9eca16766..33ed300dc 100644 --- a/src/RayCarrot.RCP.Metro/Services/Message/MessageUIManagerExtensions.cs +++ b/src/RayCarrot.RCP.Metro/Services/Message/MessageUIManagerExtensions.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// Extension methods for diff --git a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/IDialogWindowControl.cs b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/IDialogWindowControl.cs index 949660009..8d5b0cd70 100644 --- a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/IDialogWindowControl.cs +++ b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/IDialogWindowControl.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; public interface IDialogWindowControl : IWindowControl where UserInput : UserInputViewModel diff --git a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/IWindowControl.cs b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/IWindowControl.cs index 23d09f361..099baf635 100644 --- a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/IWindowControl.cs +++ b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/IWindowControl.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// An abstract window control diff --git a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/WindowContentControl.cs b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/WindowContentControl.cs index 7dc0ad92a..992be0154 100644 --- a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/WindowContentControl.cs +++ b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/WindowContentControl.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.ComponentModel; +using System.ComponentModel; using System.Windows.Controls; using System.Windows.Threading; diff --git a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Instance/ChildWindowInstance.cs b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Instance/ChildWindowInstance.cs index 5acef7e6e..9a305ecf8 100644 --- a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Instance/ChildWindowInstance.cs +++ b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Instance/ChildWindowInstance.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.ComponentModel; +using System.ComponentModel; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Instance/StandardWindowInstance.cs b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Instance/StandardWindowInstance.cs index 0e45ef3cf..5652eac71 100644 --- a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Instance/StandardWindowInstance.cs +++ b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Instance/StandardWindowInstance.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.ComponentModel; +using System.ComponentModel; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Instance/WindowInstance.cs b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Instance/WindowInstance.cs index 929eff14f..2f7f10043 100644 --- a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Instance/WindowInstance.cs +++ b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Instance/WindowInstance.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.ComponentModel; +using System.ComponentModel; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Services/WindowDialog/ShowWindowFlags.cs b/src/RayCarrot.RCP.Metro/Services/WindowDialog/ShowWindowFlags.cs index 93e7bc71b..f9d30c060 100644 --- a/src/RayCarrot.RCP.Metro/Services/WindowDialog/ShowWindowFlags.cs +++ b/src/RayCarrot.RCP.Metro/Services/WindowDialog/ShowWindowFlags.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// The available flags to use on diff --git a/src/RayCarrot.RCP.Metro/Services/WindowDialog/ViewModels/UserInputResult.cs b/src/RayCarrot.RCP.Metro/Services/WindowDialog/ViewModels/UserInputResult.cs index 1236aa9dc..9e5f675a5 100644 --- a/src/RayCarrot.RCP.Metro/Services/WindowDialog/ViewModels/UserInputResult.cs +++ b/src/RayCarrot.RCP.Metro/Services/WindowDialog/ViewModels/UserInputResult.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// The base model to use for a view model used as diff --git a/src/RayCarrot.RCP.Metro/Services/WindowDialog/ViewModels/UserInputViewModel.cs b/src/RayCarrot.RCP.Metro/Services/WindowDialog/ViewModels/UserInputViewModel.cs index 05873e168..a69baa3c4 100644 --- a/src/RayCarrot.RCP.Metro/Services/WindowDialog/ViewModels/UserInputViewModel.cs +++ b/src/RayCarrot.RCP.Metro/Services/WindowDialog/ViewModels/UserInputViewModel.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// The base view model to use for a view model used to get user input diff --git a/src/RayCarrot.RCP.Metro/UI/AttachableForStyleBehavior.cs b/src/RayCarrot.RCP.Metro/UI/AttachableForStyleBehavior.cs index bfdb17093..b9d3e9721 100644 --- a/src/RayCarrot.RCP.Metro/UI/AttachableForStyleBehavior.cs +++ b/src/RayCarrot.RCP.Metro/UI/AttachableForStyleBehavior.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Windows; +using System.Windows; using Microsoft.Xaml.Behaviors; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Behaviors/DynamicTabAnimationBehavior.cs b/src/RayCarrot.RCP.Metro/UI/Behaviors/DynamicTabAnimationBehavior.cs index 9ea15d68b..5638257e7 100644 --- a/src/RayCarrot.RCP.Metro/UI/Behaviors/DynamicTabAnimationBehavior.cs +++ b/src/RayCarrot.RCP.Metro/UI/Behaviors/DynamicTabAnimationBehavior.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Windows.Controls; +using System.Windows.Controls; using MahApps.Metro.Controls; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Behaviors/FocusElementOnLoad.cs b/src/RayCarrot.RCP.Metro/UI/Behaviors/FocusElementOnLoad.cs index 9aedcf878..4e11fde67 100644 --- a/src/RayCarrot.RCP.Metro/UI/Behaviors/FocusElementOnLoad.cs +++ b/src/RayCarrot.RCP.Metro/UI/Behaviors/FocusElementOnLoad.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Windows; +using System.Windows; using Microsoft.Xaml.Behaviors; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Behaviors/FocusScrollViewerOnLoad.cs b/src/RayCarrot.RCP.Metro/UI/Behaviors/FocusScrollViewerOnLoad.cs index 0d7937d28..6d977789b 100644 --- a/src/RayCarrot.RCP.Metro/UI/Behaviors/FocusScrollViewerOnLoad.cs +++ b/src/RayCarrot.RCP.Metro/UI/Behaviors/FocusScrollViewerOnLoad.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Windows; +using System.Windows; using System.Windows.Controls; using Microsoft.Xaml.Behaviors; using System.Windows.Media; diff --git a/src/RayCarrot.RCP.Metro/UI/Behaviors/ListBoxSelectedItemsBehavior.cs b/src/RayCarrot.RCP.Metro/UI/Behaviors/ListBoxSelectedItemsBehavior.cs index 93aec5267..f12aaa488 100644 --- a/src/RayCarrot.RCP.Metro/UI/Behaviors/ListBoxSelectedItemsBehavior.cs +++ b/src/RayCarrot.RCP.Metro/UI/Behaviors/ListBoxSelectedItemsBehavior.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Windows; +using System.Windows; using System.Windows.Controls; using Microsoft.Xaml.Behaviors; diff --git a/src/RayCarrot.RCP.Metro/UI/Behaviors/MultiSelectorSelectedItemsBehavior.cs b/src/RayCarrot.RCP.Metro/UI/Behaviors/MultiSelectorSelectedItemsBehavior.cs index 089eb2f08..f5089fcfa 100644 --- a/src/RayCarrot.RCP.Metro/UI/Behaviors/MultiSelectorSelectedItemsBehavior.cs +++ b/src/RayCarrot.RCP.Metro/UI/Behaviors/MultiSelectorSelectedItemsBehavior.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Windows; +using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; using Microsoft.Xaml.Behaviors; diff --git a/src/RayCarrot.RCP.Metro/UI/Behaviors/SubTabControlBehavior.cs b/src/RayCarrot.RCP.Metro/UI/Behaviors/SubTabControlBehavior.cs index 508dd359e..41704c0b5 100644 --- a/src/RayCarrot.RCP.Metro/UI/Behaviors/SubTabControlBehavior.cs +++ b/src/RayCarrot.RCP.Metro/UI/Behaviors/SubTabControlBehavior.cs @@ -1,5 +1,4 @@ -#nullable disable -using Microsoft.Xaml.Behaviors; +using Microsoft.Xaml.Behaviors; using System.Windows; using System.Windows.Controls; using System.Windows.Input; diff --git a/src/RayCarrot.RCP.Metro/UI/Behaviors/UnifiedMarginBehavior.cs b/src/RayCarrot.RCP.Metro/UI/Behaviors/UnifiedMarginBehavior.cs index 9f4bd2139..fbcda6694 100644 --- a/src/RayCarrot.RCP.Metro/UI/Behaviors/UnifiedMarginBehavior.cs +++ b/src/RayCarrot.RCP.Metro/UI/Behaviors/UnifiedMarginBehavior.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Windows; +using System.Windows; using System.Windows.Controls; using Microsoft.Xaml.Behaviors; diff --git a/src/RayCarrot.RCP.Metro/UI/Behaviors/UpdateTextBoxBindingOnEnterBehavior.cs b/src/RayCarrot.RCP.Metro/UI/Behaviors/UpdateTextBoxBindingOnEnterBehavior.cs index 2380a84c0..8fb7c9f8b 100644 --- a/src/RayCarrot.RCP.Metro/UI/Behaviors/UpdateTextBoxBindingOnEnterBehavior.cs +++ b/src/RayCarrot.RCP.Metro/UI/Behaviors/UpdateTextBoxBindingOnEnterBehavior.cs @@ -1,5 +1,4 @@ -#nullable disable -using Microsoft.Xaml.Behaviors; +using Microsoft.Xaml.Behaviors; using System.Windows.Controls; using System.Windows.Input; diff --git a/src/RayCarrot.RCP.Metro/UI/BindingProxy.cs b/src/RayCarrot.RCP.Metro/UI/BindingProxy.cs index 5c7b6a7c7..12700777e 100644 --- a/src/RayCarrot.RCP.Metro/UI/BindingProxy.cs +++ b/src/RayCarrot.RCP.Metro/UI/BindingProxy.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Windows; +using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Controls/BrowseBox/BrowseBox.cs b/src/RayCarrot.RCP.Metro/UI/Controls/BrowseBox/BrowseBox.cs index 2418180a6..17d2f5744 100644 --- a/src/RayCarrot.RCP.Metro/UI/Controls/BrowseBox/BrowseBox.cs +++ b/src/RayCarrot.RCP.Metro/UI/Controls/BrowseBox/BrowseBox.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.IO; +using System.IO; using System.Windows; using System.Windows.Controls; using System.Windows.Input; diff --git a/src/RayCarrot.RCP.Metro/UI/Controls/DuoGrid/DuoGrid.cs b/src/RayCarrot.RCP.Metro/UI/Controls/DuoGrid/DuoGrid.cs index 86d9e99be..0f8dca816 100644 --- a/src/RayCarrot.RCP.Metro/UI/Controls/DuoGrid/DuoGrid.cs +++ b/src/RayCarrot.RCP.Metro/UI/Controls/DuoGrid/DuoGrid.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Windows; +using System.Windows; using System.Windows.Controls; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Controls/DuoGrid/DuoGridItem/DuoGridItem.cs b/src/RayCarrot.RCP.Metro/UI/Controls/DuoGrid/DuoGridItem/DuoGridItem.cs index 940aee30d..e9b2c69bd 100644 --- a/src/RayCarrot.RCP.Metro/UI/Controls/DuoGrid/DuoGridItem/DuoGridItem.cs +++ b/src/RayCarrot.RCP.Metro/UI/Controls/DuoGrid/DuoGridItem/DuoGridItem.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Windows; +using System.Windows; using System.Windows.Controls; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Controls/MenuItemIcon.xaml.cs b/src/RayCarrot.RCP.Metro/UI/Controls/MenuItemIcon.xaml.cs index e96b89aec..8cafbb678 100644 --- a/src/RayCarrot.RCP.Metro/UI/Controls/MenuItemIcon.xaml.cs +++ b/src/RayCarrot.RCP.Metro/UI/Controls/MenuItemIcon.xaml.cs @@ -1,5 +1,4 @@ -#nullable disable -using MahApps.Metro.IconPacks; +using MahApps.Metro.IconPacks; using System.Windows; using System.Windows.Controls; using System.Windows.Media; diff --git a/src/RayCarrot.RCP.Metro/UI/Controls/RCPChildWindow.cs b/src/RayCarrot.RCP.Metro/UI/Controls/RCPChildWindow.cs index df34c53ab..b54fa1542 100644 --- a/src/RayCarrot.RCP.Metro/UI/Controls/RCPChildWindow.cs +++ b/src/RayCarrot.RCP.Metro/UI/Controls/RCPChildWindow.cs @@ -1,5 +1,4 @@ -#nullable disable -using MahApps.Metro.SimpleChildWindow; +using MahApps.Metro.SimpleChildWindow; using System.Windows; using System.Windows.Controls; using System.Windows.Input; diff --git a/src/RayCarrot.RCP.Metro/UI/Controls/RadioButtonExtended.cs b/src/RayCarrot.RCP.Metro/UI/Controls/RadioButtonExtended.cs index ed62860d4..5859befd9 100644 --- a/src/RayCarrot.RCP.Metro/UI/Controls/RadioButtonExtended.cs +++ b/src/RayCarrot.RCP.Metro/UI/Controls/RadioButtonExtended.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Windows; +using System.Windows; using System.Windows.Controls; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Controls/VMUserControl.cs b/src/RayCarrot.RCP.Metro/UI/Controls/VMUserControl.cs index b2618dc63..30f82dddc 100644 --- a/src/RayCarrot.RCP.Metro/UI/Controls/VMUserControl.cs +++ b/src/RayCarrot.RCP.Metro/UI/Controls/VMUserControl.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.ComponentModel; +using System.ComponentModel; using System.Windows.Controls; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Controls/VMWindow.cs b/src/RayCarrot.RCP.Metro/UI/Controls/VMWindow.cs index de1df915a..8cf344735 100644 --- a/src/RayCarrot.RCP.Metro/UI/Controls/VMWindow.cs +++ b/src/RayCarrot.RCP.Metro/UI/Controls/VMWindow.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.ComponentModel; +using System.ComponentModel; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/BaseValueConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/BaseValueConverter.cs index db28d2ce2..3e59d8676 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/BaseValueConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/BaseValueConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; using System.Windows; using System.Windows.Data; using System.Windows.Markup; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/BooleanAndConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/BooleanAndConverter.cs index 9498b6bd2..2a8ecff53 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/BooleanAndConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/BooleanAndConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; using System.Windows.Data; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/EqualsToConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/EqualsToConverter.cs index 2af3da095..aa6833b4e 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/EqualsToConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/EqualsToConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/InvertedBooleanConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/InvertedBooleanConverter.cs index a02e18472..c0c714261 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/InvertedBooleanConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/InvertedBooleanConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/InvertedEqualsToConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/InvertedEqualsToConverter.cs index 906918341..6fb0140ec 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/InvertedEqualsToConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/InvertedEqualsToConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/IsNotNullConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/IsNotNullConverter.cs index e2c3f7db5..d1dc23602 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/IsNotNullConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/IsNotNullConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/IsNullConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/IsNullConverter.cs index 9061d0dcd..16318e4df 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/IsNullConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/IsNullConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/PathExistsConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/PathExistsConverter.cs index df7e58350..348d64226 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/PathExistsConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/PathExistsConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/PathNotExistsConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/PathNotExistsConverter.cs index 05cb6f6c0..95222c706 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/PathNotExistsConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/PathNotExistsConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Other/BooleanToDataGridSelectionModeConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Other/BooleanToDataGridSelectionModeConverter.cs index cf2a11602..79b77186a 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Other/BooleanToDataGridSelectionModeConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Other/BooleanToDataGridSelectionModeConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; using System.Windows.Controls; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Other/BooleanToFluidMoveDurationConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Other/BooleanToFluidMoveDurationConverter.cs index 56c21b573..cd25d2fb7 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Other/BooleanToFluidMoveDurationConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Other/BooleanToFluidMoveDurationConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Other/ByteEnumToIntConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Other/ByteEnumToIntConverter.cs index 1c7bb3ab5..07efba2e8 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Other/ByteEnumToIntConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Other/ByteEnumToIntConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Other/CultureNameToCultureInfoConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Other/CultureNameToCultureInfoConverter.cs index af585b284..63be626ed 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Other/CultureNameToCultureInfoConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Other/CultureNameToCultureInfoConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Other/EnumToIntConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Other/EnumToIntConverter.cs index 2b6b959d1..6a6903113 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Other/EnumToIntConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Other/EnumToIntConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Other/EnumToListConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Other/EnumToListConverter.cs index 591cb7dd7..e524b0c14 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Other/EnumToListConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Other/EnumToListConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Other/FileSystemPathToStringConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Other/FileSystemPathToStringConverter.cs index 8f1f12505..8d6b02416 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Other/FileSystemPathToStringConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Other/FileSystemPathToStringConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Other/GetDescendantByTypeConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Other/GetDescendantByTypeConverter.cs index 13289c8b6..164a6a82f 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Other/GetDescendantByTypeConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Other/GetDescendantByTypeConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; using System.Windows.Media; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Other/IntToStringConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Other/IntToStringConverter.cs index 88ee2096c..1300cf378 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Other/IntToStringConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Other/IntToStringConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Other/PositiveDoubleAdditionConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Other/PositiveDoubleAdditionConverter.cs index 0575f01e8..1e5669756 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Other/PositiveDoubleAdditionConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Other/PositiveDoubleAdditionConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Other/StringToFileSystemPathConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Other/StringToFileSystemPathConverter.cs index 689c3d051..f41e41a77 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Other/StringToFileSystemPathConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Other/StringToFileSystemPathConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/BooleanToVisibilityConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/BooleanToVisibilityConverter.cs index ef50f7767..1827ca50c 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/BooleanToVisibilityConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/BooleanToVisibilityConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/BooleanToVisibilityHiddenConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/BooleanToVisibilityHiddenConverter.cs index d9be97263..2956e284a 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/BooleanToVisibilityHiddenConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/BooleanToVisibilityHiddenConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedBooleanToVisibilityConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedBooleanToVisibilityConverter.cs index 5c0dcd4f6..eeea5e7c9 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedBooleanToVisibilityConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedBooleanToVisibilityConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedObjectNullToVisibilityConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedObjectNullToVisibilityConverter.cs index 37b2edba4..ea89d65e7 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedObjectNullToVisibilityConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedObjectNullToVisibilityConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedObjectNullToVisibilityHiddenConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedObjectNullToVisibilityHiddenConverter.cs index d8052bec0..0d7849462 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedObjectNullToVisibilityHiddenConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedObjectNullToVisibilityHiddenConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedStringEmptyToVisibilityConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedStringEmptyToVisibilityConverter.cs index 0c8658cc1..de0a2ed85 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedStringEmptyToVisibilityConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedStringEmptyToVisibilityConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/IsNotTypeToVisibilityConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/IsNotTypeToVisibilityConverter.cs index f4b3f8751..4d28fbeb7 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/IsNotTypeToVisibilityConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/IsNotTypeToVisibilityConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/IsTypeToVisibilityConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/IsTypeToVisibilityConverter.cs index 47fa662f3..8177096cc 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/IsTypeToVisibilityConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/IsTypeToVisibilityConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/ObjectNullToVisibilityConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/ObjectNullToVisibilityConverter.cs index 900c50f16..b4c88fa1b 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/ObjectNullToVisibilityConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/ObjectNullToVisibilityConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/StringEmptyToVisibilityConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/StringEmptyToVisibilityConverter.cs index 29ba8b84b..6f1be593c 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/StringEmptyToVisibilityConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/StringEmptyToVisibilityConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/Downloader/Downloader.xaml.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/Downloader/Downloader.xaml.cs index d270f5ee8..797896078 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/Downloader/Downloader.xaml.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/Downloader/Downloader.xaml.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Windows; +using System.Windows; using Microsoft.WindowsAPICodePack.Taskbar; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/Downloader/DownloaderResult.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/Downloader/DownloaderResult.cs index 3adac399e..4ce42125d 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/Downloader/DownloaderResult.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/Downloader/DownloaderResult.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; public class DownloaderResult : UserInputResult { diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/Downloader/DownloaderViewModel.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/Downloader/DownloaderViewModel.cs index 81cc0eef1..6bb183806 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/Downloader/DownloaderViewModel.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/Downloader/DownloaderViewModel.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.IO; +using System.IO; using System.IO.Compression; using System.Net; diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/DriveSelection/DriveSelectionDialog.xaml.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/DriveSelection/DriveSelectionDialog.xaml.cs index a893cfe3f..d1dfa0e96 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/DriveSelection/DriveSelectionDialog.xaml.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/DriveSelection/DriveSelectionDialog.xaml.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.IO; +using System.IO; using System.Windows; using System.Windows.Input; diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/DriveSelection/DriveSelectionViewModel.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/DriveSelection/DriveSelectionViewModel.cs index f596bc7de..15152bdf5 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/DriveSelection/DriveSelectionViewModel.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/DriveSelection/DriveSelectionViewModel.cs @@ -1,5 +1,4 @@ -#nullable disable -using Microsoft.WindowsAPICodePack.Shell; +using Microsoft.WindowsAPICodePack.Shell; using Nito.AsyncEx; using System.IO; using System.Windows.Input; diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/DriveSelection/DriveViewModel.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/DriveSelection/DriveViewModel.cs index d12458fbc..ffb500006 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/DriveSelection/DriveViewModel.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/DriveSelection/DriveViewModel.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.IO; +using System.IO; using System.Windows.Media; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/GamesSelection/GamesSelectionResult.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/GamesSelection/GamesSelectionResult.cs index 749119579..3963d8fcd 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/GamesSelection/GamesSelectionResult.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/GamesSelection/GamesSelectionResult.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// Result for a games selection dialog diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/ItemSelection/ItemSelectionDialog.xaml.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/ItemSelection/ItemSelectionDialog.xaml.cs index a0e0cedbb..2ba9f1c15 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/ItemSelection/ItemSelectionDialog.xaml.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/ItemSelection/ItemSelectionDialog.xaml.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Windows; +using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/JumpListEdit/JumpListEditResult.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/JumpListEdit/JumpListEditResult.cs index bb773b602..49c442905 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/JumpListEdit/JumpListEditResult.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/JumpListEdit/JumpListEditResult.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// Result for the jump list editor diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageActionHandledEventArgs.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageActionHandledEventArgs.cs index a800abdbd..04794d1e7 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageActionHandledEventArgs.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageActionHandledEventArgs.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// Event arguments for when a dialog message action is handled diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageActionViewModel.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageActionViewModel.cs index 04a79abe5..e7bbb8399 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageActionViewModel.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageActionViewModel.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Windows.Input; +using System.Windows.Input; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageBox.xaml.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageBox.xaml.cs index d7f3e274e..3fb052e74 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageBox.xaml.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageBox.xaml.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// A dialog message box with standard WPF controls diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageViewModel.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageViewModel.cs index 5d1d792f1..63868c42a 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageViewModel.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageViewModel.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Windows.Media; +using System.Windows.Media; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/MessageType.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/MessageType.cs index f11942891..122748ff9 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/MessageType.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/MessageType.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// The types of messages to display diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/StringInput/StringInputDialog.xaml.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/StringInput/StringInputDialog.xaml.cs index f35073c5a..6ebc767df 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/StringInput/StringInputDialog.xaml.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/StringInput/StringInputDialog.xaml.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Windows; +using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/StringInput/StringInputResult.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/StringInput/StringInputResult.cs index aebe325f0..a873b7c0d 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/StringInput/StringInputResult.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/StringInput/StringInputResult.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// Result for a string input dialog diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/StringInput/StringInputViewModel.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/StringInput/StringInputViewModel.cs index e51775a5a..e35a69a33 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/StringInput/StringInputViewModel.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/StringInput/StringInputViewModel.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// View model for a string input dialog diff --git a/src/RayCarrot.RCP.Metro/UI/Taskbar/TaskbarManagerExtensions.cs b/src/RayCarrot.RCP.Metro/UI/Taskbar/TaskbarManagerExtensions.cs index ede37797c..f042a6efb 100644 --- a/src/RayCarrot.RCP.Metro/UI/Taskbar/TaskbarManagerExtensions.cs +++ b/src/RayCarrot.RCP.Metro/UI/Taskbar/TaskbarManagerExtensions.cs @@ -1,5 +1,4 @@ -#nullable disable -using Microsoft.WindowsAPICodePack.Taskbar; +using Microsoft.WindowsAPICodePack.Taskbar; using System.Windows; using System.Windows.Interop; diff --git a/src/RayCarrot.RCP.Metro/UI/UserControls/AdminButton.xaml.cs b/src/RayCarrot.RCP.Metro/UI/UserControls/AdminButton.xaml.cs index 8e355a38e..280a9a3de 100644 --- a/src/RayCarrot.RCP.Metro/UI/UserControls/AdminButton.xaml.cs +++ b/src/RayCarrot.RCP.Metro/UI/UserControls/AdminButton.xaml.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Windows.Controls; +using System.Windows.Controls; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/ButtonMapper.xaml.cs b/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/ButtonMapper.xaml.cs index 3e78eb2e3..1db699f87 100644 --- a/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/ButtonMapper.xaml.cs +++ b/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/ButtonMapper.xaml.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Windows; +using System.Windows; using System.Windows.Controls; using System.Windows.Input; using MahApps.Metro.Controls; diff --git a/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/ButtonMapperHotKeyValidationRule.cs b/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/ButtonMapperHotKeyValidationRule.cs index 9b37cc679..f0a37f533 100644 --- a/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/ButtonMapperHotKeyValidationRule.cs +++ b/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/ButtonMapperHotKeyValidationRule.cs @@ -1,5 +1,4 @@ -#nullable disable -using MahApps.Metro.Controls; +using MahApps.Metro.Controls; using System.Globalization; using System.Windows.Controls; using System.Windows.Input; diff --git a/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/ButtonMapperKeyItemViewModel.cs b/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/ButtonMapperKeyItemViewModel.cs index 2f86510ed..7c2ab4971 100644 --- a/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/ButtonMapperKeyItemViewModel.cs +++ b/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/ButtonMapperKeyItemViewModel.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Windows.Input; +using System.Windows.Input; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/KeyToHotKeyConverter.cs b/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/KeyToHotKeyConverter.cs index d7dd22736..1527e7d95 100644 --- a/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/KeyToHotKeyConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/KeyToHotKeyConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using MahApps.Metro.Controls; +using MahApps.Metro.Controls; using System.Globalization; using System.Windows.Input; diff --git a/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/KeyToStringConverter.cs b/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/KeyToStringConverter.cs index ee6c90908..26b8dc82e 100644 --- a/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/KeyToStringConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/KeyToStringConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using MahApps.Metro.Controls; +using MahApps.Metro.Controls; using System.Globalization; using System.Windows.Input; diff --git a/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeSelection.xaml.cs b/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeSelection.xaml.cs index 4b51fb69a..1367c6b43 100644 --- a/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeSelection.xaml.cs +++ b/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeSelection.xaml.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Windows; +using System.Windows; using System.Windows.Controls; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeSelectionViewModel.cs b/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeSelectionViewModel.cs index f3df790b1..bf74dd0a9 100644 --- a/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeSelectionViewModel.cs +++ b/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeSelectionViewModel.cs @@ -1,5 +1,4 @@ -#nullable disable -using PropertyChanged; +using PropertyChanged; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeToStringConverter.cs b/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeToStringConverter.cs index a2b2ac039..ce2c8dbce 100644 --- a/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeToStringConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeToStringConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeValidationRule.cs b/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeValidationRule.cs index 6b1f14500..922659bca 100644 --- a/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeValidationRule.cs +++ b/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeValidationRule.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; using System.Windows.Controls; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/UserControls/InfoIcon.xaml.cs b/src/RayCarrot.RCP.Metro/UI/UserControls/InfoIcon.xaml.cs index 8e2f5a4dd..b92c30019 100644 --- a/src/RayCarrot.RCP.Metro/UI/UserControls/InfoIcon.xaml.cs +++ b/src/RayCarrot.RCP.Metro/UI/UserControls/InfoIcon.xaml.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Windows; +using System.Windows; using System.Windows.Controls; using MahApps.Metro.IconPacks; diff --git a/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/DirectoryExistsAndNotEmptyValidationRule.cs b/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/DirectoryExistsAndNotEmptyValidationRule.cs index 24b87b602..b3ec66ec4 100644 --- a/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/DirectoryExistsAndNotEmptyValidationRule.cs +++ b/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/DirectoryExistsAndNotEmptyValidationRule.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; using System.IO; using System.Windows.Controls; diff --git a/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/DirectoryExistsValidationRule.cs b/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/DirectoryExistsValidationRule.cs index 7dc65a1f0..e883cf27c 100644 --- a/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/DirectoryExistsValidationRule.cs +++ b/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/DirectoryExistsValidationRule.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; using System.IO; using System.Windows.Controls; diff --git a/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/FileExistsAndNotEmptyValidationRule.cs b/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/FileExistsAndNotEmptyValidationRule.cs index a7e1cf82b..7b6f1594c 100644 --- a/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/FileExistsAndNotEmptyValidationRule.cs +++ b/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/FileExistsAndNotEmptyValidationRule.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; using System.IO; using System.Windows.Controls; diff --git a/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/FileExistsValidationRule.cs b/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/FileExistsValidationRule.cs index 807cb445a..285cd71a7 100644 --- a/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/FileExistsValidationRule.cs +++ b/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/FileExistsValidationRule.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; using System.IO; using System.Windows.Controls; diff --git a/src/RayCarrot.RCP.Metro/UI/ValidationRules/NotEmptyValidationRule.cs b/src/RayCarrot.RCP.Metro/UI/ValidationRules/NotEmptyValidationRule.cs index c4b1fc8df..7ba6aba6a 100644 --- a/src/RayCarrot.RCP.Metro/UI/ValidationRules/NotEmptyValidationRule.cs +++ b/src/RayCarrot.RCP.Metro/UI/ValidationRules/NotEmptyValidationRule.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; using System.Windows.Controls; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Windows/Base/BaseIconWindow.cs b/src/RayCarrot.RCP.Metro/UI/Windows/Base/BaseIconWindow.cs index 17d38113c..020a67cd0 100644 --- a/src/RayCarrot.RCP.Metro/UI/Windows/Base/BaseIconWindow.cs +++ b/src/RayCarrot.RCP.Metro/UI/Windows/Base/BaseIconWindow.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Windows; +using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Windows/Base/BaseWindow.cs b/src/RayCarrot.RCP.Metro/UI/Windows/Base/BaseWindow.cs index 28dc06396..bcb3f8597 100644 --- a/src/RayCarrot.RCP.Metro/UI/Windows/Base/BaseWindow.cs +++ b/src/RayCarrot.RCP.Metro/UI/Windows/Base/BaseWindow.cs @@ -1,5 +1,4 @@ -#nullable disable -using MahApps.Metro.Controls; +using MahApps.Metro.Controls; using System.Windows; using System.Windows.Controls; using System.Windows.Input; diff --git a/src/RayCarrot.RCP.Metro/UI/Windows/FirstLaunchInfoDialog.xaml.cs b/src/RayCarrot.RCP.Metro/UI/Windows/FirstLaunchInfoDialog.xaml.cs index 9b6b191c7..bb416f32a 100644 --- a/src/RayCarrot.RCP.Metro/UI/Windows/FirstLaunchInfoDialog.xaml.cs +++ b/src/RayCarrot.RCP.Metro/UI/Windows/FirstLaunchInfoDialog.xaml.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Windows; +using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Windows/LicenseDialog.xaml.cs b/src/RayCarrot.RCP.Metro/UI/Windows/LicenseDialog.xaml.cs index 68e236919..44fe6bf8c 100644 --- a/src/RayCarrot.RCP.Metro/UI/Windows/LicenseDialog.xaml.cs +++ b/src/RayCarrot.RCP.Metro/UI/Windows/LicenseDialog.xaml.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Windows; +using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Windows/LogViewer/LogItemViewModel.cs b/src/RayCarrot.RCP.Metro/UI/Windows/LogViewer/LogItemViewModel.cs index c1388d4d0..737c163a6 100644 --- a/src/RayCarrot.RCP.Metro/UI/Windows/LogViewer/LogItemViewModel.cs +++ b/src/RayCarrot.RCP.Metro/UI/Windows/LogViewer/LogItemViewModel.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; public class LogItemViewModel : BaseRCPViewModel { diff --git a/src/RayCarrot.RCP.Metro/UI/Windows/LogViewer/LogViewer.xaml.cs b/src/RayCarrot.RCP.Metro/UI/Windows/LogViewer/LogViewer.xaml.cs index 7efc33f72..495c7c9cc 100644 --- a/src/RayCarrot.RCP.Metro/UI/Windows/LogViewer/LogViewer.xaml.cs +++ b/src/RayCarrot.RCP.Metro/UI/Windows/LogViewer/LogViewer.xaml.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Collections.Specialized; +using System.Collections.Specialized; using System.ComponentModel; using System.Windows; diff --git a/src/RayCarrot.RCP.Metro/UI/Windows/LogViewer/LogViewerViewModel.cs b/src/RayCarrot.RCP.Metro/UI/Windows/LogViewer/LogViewerViewModel.cs index 4624245e2..20e33b42a 100644 --- a/src/RayCarrot.RCP.Metro/UI/Windows/LogViewer/LogViewerViewModel.cs +++ b/src/RayCarrot.RCP.Metro/UI/Windows/LogViewer/LogViewerViewModel.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Windows.Input; +using System.Windows.Input; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Updater/IUpdaterManager.cs b/src/RayCarrot.RCP.Metro/Updater/IUpdaterManager.cs index a0c481621..e20f10ab2 100644 --- a/src/RayCarrot.RCP.Metro/Updater/IUpdaterManager.cs +++ b/src/RayCarrot.RCP.Metro/Updater/IUpdaterManager.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// Defines a generic update manager diff --git a/src/RayCarrot.RCP.Metro/Updater/RCPUpdaterManager.cs b/src/RayCarrot.RCP.Metro/Updater/RCPUpdaterManager.cs index 718c2030f..c7ac30735 100644 --- a/src/RayCarrot.RCP.Metro/Updater/RCPUpdaterManager.cs +++ b/src/RayCarrot.RCP.Metro/Updater/RCPUpdaterManager.cs @@ -1,5 +1,4 @@ -#nullable disable -using Newtonsoft.Json.Linq; +using Newtonsoft.Json.Linq; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Updater/UpdaterCheckResult.cs b/src/RayCarrot.RCP.Metro/Updater/UpdaterCheckResult.cs index 6658f6e60..79412ead5 100644 --- a/src/RayCarrot.RCP.Metro/Updater/UpdaterCheckResult.cs +++ b/src/RayCarrot.RCP.Metro/Updater/UpdaterCheckResult.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// The result for an updater check From 8325b194ef559f00ab7ff63e9bb460ef8583c643 Mon Sep 17 00:00:00 2001 From: Lars Mulder Date: Fri, 19 Sep 2025 23:11:24 +0200 Subject: [PATCH 2/7] Revert "Removed all instances of #nullable disable" This reverts commit 0073b41c8d4492260a3da33bf6d20055153cbb2e. --- TODO.md | 1 + src/RayCarrot.RCP.Metro/AppData/AppUserData.Aliases.v12.0.0.cs | 3 ++- src/RayCarrot.RCP.Metro/AppData/AppUserData.Aliases.v14.0.0.cs | 3 ++- src/RayCarrot.RCP.Metro/AppData/AppUserData.cs | 1 + src/RayCarrot.RCP.Metro/Binary/CPA/GAM_DisplayFixMode.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/CPA/GAM_EngineMode.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/CPA/GAM_EngineStructure.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/CPA/IPT_InputMode.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/CPA/PS1/CPAPs1SaveBlock.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock1.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock2.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock3.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveData.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushLevelSave.cs | 3 ++- .../Binary/CPA/PS1/RaymanRushPs1SaveBlock1.cs | 3 ++- .../Binary/CPA/PS1/RaymanRushPs1SaveBlock2.cs | 3 ++- .../Binary/CPA/PS1/RaymanRushPs1SaveBlock3.cs | 3 ++- .../Binary/CPA/PS1/RaymanRushPs1SaveData.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/CPA/PS2/Rayman2Ps2SaveData.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/CPA/PS2/Rayman2Ps2SaveInfo.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/GameMaker/GameMaker_DSMap.cs | 3 ++- .../Binary/GameMaker/GameMaker_DSMapDataObject.cs | 3 ++- .../Binary/GameMaker/GameMaker_DSMapEntry.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/Gba/R3/R3GBA_SaveData.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/Gba/R3/R3GBA_SaveSlot.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_Highscore.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_LevelSave.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_SaveData.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_SaveSlot.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/Gba/RRR/RRRGBA_SaveData.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/Gba/RRR/RRRGBA_SaveSlot.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/Jade/Jade_BIG_BigFile.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/Jade/Jade_BIG_FatFile.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/PS1ISO/PS1ISO.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/PS1ISO/PS1ISOLicense.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/ProcessMemoryStreamFile.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SavSlotDesc.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SaveFile.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SaveSlot.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/RRR/RRR_UniversSave.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_MiniGame.cs | 1 + src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_SaveFile.cs | 1 + src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_ScoreEntry.cs | 1 + src/RayCarrot.RCP.Metro/Binary/Ubisoft/UPC_StorageFile.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/Unity/Unity_PlayerPrefs.cs | 3 ++- src/RayCarrot.RCP.Metro/Binary/Unity/Unity_PlayerPrefsEntry.cs | 3 ++- src/RayCarrot.RCP.Metro/Helpers/Extensions/EnumExtensions.cs | 3 ++- .../Helpers/Extensions/EnumerableExtensions.cs | 3 ++- src/RayCarrot.RCP.Metro/Helpers/Extensions/ObjectExtensions.cs | 3 ++- src/RayCarrot.RCP.Metro/Helpers/Extensions/StringExtensions.cs | 3 ++- src/RayCarrot.RCP.Metro/Helpers/Extensions/TaskExtensions.cs | 3 ++- src/RayCarrot.RCP.Metro/Helpers/Extensions/VisualExtensions.cs | 3 ++- src/RayCarrot.RCP.Metro/Helpers/Extensions/WindowExtensions.cs | 3 ++- .../Helpers/JsonConverters/ByteArrayHexConverter.cs | 3 ++- .../Helpers/JsonConverters/SimpleTypeConverter.cs | 3 ++- src/RayCarrot.RCP.Metro/Helpers/JsonHelpers.cs | 3 ++- .../Helpers/OperationStatus/IStatusUpdated.cs | 3 ++- .../Helpers/OperationStatus/ItemsOperationProgress.cs | 3 ++- .../Helpers/OperationStatus/OperationProgressEventArgs.cs | 3 ++- .../Helpers/OperationStatus/OperationState.cs | 3 ++- src/RayCarrot.RCP.Metro/Helpers/OperationStatus/Progress.cs | 3 ++- src/RayCarrot.RCP.Metro/Helpers/Patcher/FilePatcher.cs | 3 ++- src/RayCarrot.RCP.Metro/Helpers/Patcher/FilePatcher_Patch.cs | 3 ++- .../Helpers/Windows/ShellThumbnailExtensions.cs | 3 ++- src/RayCarrot.RCP.Metro/Helpers/Windows/ShellThumbnailSize.cs | 3 ++- src/RayCarrot.RCP.Metro/Helpers/Windows/WindowsHelpers.cs | 3 ++- .../IO/FileSystemPath/FileSystemPathConverter.cs | 3 ++- .../IO/FileSystemPath/FileSystemPathExtensions.cs | 3 ++- src/RayCarrot.RCP.Metro/Installer/GameInstaller.cs | 3 ++- src/RayCarrot.RCP.Metro/Installer/GameInstallerDialog.xaml.cs | 3 ++- src/RayCarrot.RCP.Metro/Installer/GameInstaller_Data.cs | 3 ++- src/RayCarrot.RCP.Metro/Installer/GameInstaller_DriveInfo.cs | 3 ++- src/RayCarrot.RCP.Metro/Installer/GameInstaller_Item.cs | 3 ++- src/RayCarrot.RCP.Metro/Installer/GameInstaller_ItemStage.cs | 3 ++- src/RayCarrot.RCP.Metro/Installer/GameInstaller_Result.cs | 3 ++- .../Installer/Games/InstallerGames.Designer.cs | 3 ++- .../Legacy/Patcher/Library/PatchLibraryPackage.cs | 3 ++- .../Legacy/Patcher/Library/PatchLibraryPackageHistory.cs | 3 ++- .../Legacy/Patcher/Library/PatchLibraryPackagePatchEntry.cs | 3 ++- .../Legacy/Patcher/PackagedResourceChecksum.cs | 3 ++- .../Legacy/Patcher/PackagedResourceEntry.cs | 3 ++- src/RayCarrot.RCP.Metro/Legacy/Patcher/Patch/PatchPackage.cs | 3 ++- .../Legacy/Patcher/Patch/PatchPackageChangelogEntry.cs | 3 ++- .../Legacy/Patcher/Patch/PatchPackageMetadata.cs | 3 ++- src/RayCarrot.RCP.Metro/Legacy/Patcher/PatchFilePath.cs | 1 + .../Localization/LocString/ConstLocString.cs | 3 ++- .../Localization/LocString/GeneratedLocString.cs | 3 ++- .../Localization/LocString/LocalizedString.cs | 3 ++- .../Localization/LocString/ResourceLocString.cs | 3 ++- src/RayCarrot.RCP.Metro/Localization/LocalizationManager.cs | 3 ++- src/RayCarrot.RCP.Metro/ModLoader/Modules/Deltas/DeltaChunk.cs | 3 ++- src/RayCarrot.RCP.Metro/ModLoader/Modules/Deltas/DeltaFile.cs | 3 ++- src/RayCarrot.RCP.Metro/Services/AppUI/AppUIManager.cs | 3 ++- src/RayCarrot.RCP.Metro/Services/Browse/BaseBrowseViewModel.cs | 3 ++- .../Services/Browse/Directory/DirectoryBrowserResult.cs | 3 ++- .../Services/Browse/Directory/DirectoryBrowserViewModel.cs | 3 ++- .../Services/Browse/Drive/DriveBrowserResult.cs | 3 ++- .../Services/Browse/Drive/DriveBrowserViewModel.cs | 3 ++- .../Services/Browse/File/FileBrowserResult.cs | 3 ++- .../Services/Browse/File/FileBrowserViewModel.cs | 3 ++- src/RayCarrot.RCP.Metro/Services/Browse/RCPBrowseUIManager.cs | 3 ++- .../Services/Browse/SaveFile/SaveFileResult.cs | 3 ++- .../Services/Browse/SaveFile/SaveFileViewModel.cs | 3 ++- src/RayCarrot.RCP.Metro/Services/FileManager.cs | 3 ++- src/RayCarrot.RCP.Metro/Services/Message/IMessageUIManager.cs | 3 ++- .../Services/Message/MessageUIManagerExtensions.cs | 3 ++- .../Services/WindowDialog/Control/IDialogWindowControl.cs | 3 ++- .../Services/WindowDialog/Control/IWindowControl.cs | 3 ++- .../Services/WindowDialog/Control/WindowContentControl.cs | 3 ++- .../Services/WindowDialog/Instance/ChildWindowInstance.cs | 3 ++- .../Services/WindowDialog/Instance/StandardWindowInstance.cs | 3 ++- .../Services/WindowDialog/Instance/WindowInstance.cs | 3 ++- .../Services/WindowDialog/ShowWindowFlags.cs | 3 ++- .../Services/WindowDialog/ViewModels/UserInputResult.cs | 3 ++- .../Services/WindowDialog/ViewModels/UserInputViewModel.cs | 3 ++- src/RayCarrot.RCP.Metro/UI/AttachableForStyleBehavior.cs | 3 ++- .../UI/Behaviors/DynamicTabAnimationBehavior.cs | 3 ++- src/RayCarrot.RCP.Metro/UI/Behaviors/FocusElementOnLoad.cs | 3 ++- .../UI/Behaviors/FocusScrollViewerOnLoad.cs | 3 ++- .../UI/Behaviors/ListBoxSelectedItemsBehavior.cs | 3 ++- .../UI/Behaviors/MultiSelectorSelectedItemsBehavior.cs | 3 ++- src/RayCarrot.RCP.Metro/UI/Behaviors/SubTabControlBehavior.cs | 3 ++- src/RayCarrot.RCP.Metro/UI/Behaviors/UnifiedMarginBehavior.cs | 3 ++- .../UI/Behaviors/UpdateTextBoxBindingOnEnterBehavior.cs | 3 ++- src/RayCarrot.RCP.Metro/UI/BindingProxy.cs | 3 ++- src/RayCarrot.RCP.Metro/UI/Controls/BrowseBox/BrowseBox.cs | 3 ++- src/RayCarrot.RCP.Metro/UI/Controls/DuoGrid/DuoGrid.cs | 3 ++- .../UI/Controls/DuoGrid/DuoGridItem/DuoGridItem.cs | 3 ++- src/RayCarrot.RCP.Metro/UI/Controls/MenuItemIcon.xaml.cs | 3 ++- src/RayCarrot.RCP.Metro/UI/Controls/RCPChildWindow.cs | 3 ++- src/RayCarrot.RCP.Metro/UI/Controls/RadioButtonExtended.cs | 3 ++- src/RayCarrot.RCP.Metro/UI/Controls/VMUserControl.cs | 3 ++- src/RayCarrot.RCP.Metro/UI/Controls/VMWindow.cs | 3 ++- src/RayCarrot.RCP.Metro/UI/Converters/BaseValueConverter.cs | 3 ++- .../UI/Converters/Bool/BooleanAndConverter.cs | 3 ++- .../UI/Converters/Bool/EqualsToConverter.cs | 3 ++- .../UI/Converters/Bool/InvertedBooleanConverter.cs | 3 ++- .../UI/Converters/Bool/InvertedEqualsToConverter.cs | 3 ++- .../UI/Converters/Bool/IsNotNullConverter.cs | 3 ++- src/RayCarrot.RCP.Metro/UI/Converters/Bool/IsNullConverter.cs | 3 ++- .../UI/Converters/Bool/PathExistsConverter.cs | 3 ++- .../UI/Converters/Bool/PathNotExistsConverter.cs | 3 ++- .../Other/BooleanToDataGridSelectionModeConverter.cs | 3 ++- .../UI/Converters/Other/BooleanToFluidMoveDurationConverter.cs | 3 ++- .../UI/Converters/Other/ByteEnumToIntConverter.cs | 3 ++- .../UI/Converters/Other/CultureNameToCultureInfoConverter.cs | 3 ++- .../UI/Converters/Other/EnumToIntConverter.cs | 3 ++- .../UI/Converters/Other/EnumToListConverter.cs | 3 ++- .../UI/Converters/Other/FileSystemPathToStringConverter.cs | 3 ++- .../UI/Converters/Other/GetDescendantByTypeConverter.cs | 3 ++- .../UI/Converters/Other/IntToStringConverter.cs | 3 ++- .../UI/Converters/Other/PositiveDoubleAdditionConverter.cs | 3 ++- .../UI/Converters/Other/StringToFileSystemPathConverter.cs | 3 ++- .../UI/Converters/Visibility/BooleanToVisibilityConverter.cs | 3 ++- .../Visibility/BooleanToVisibilityHiddenConverter.cs | 3 ++- .../Visibility/InvertedBooleanToVisibilityConverter.cs | 3 ++- .../Visibility/InvertedObjectNullToVisibilityConverter.cs | 3 ++- .../InvertedObjectNullToVisibilityHiddenConverter.cs | 3 ++- .../Visibility/InvertedStringEmptyToVisibilityConverter.cs | 3 ++- .../UI/Converters/Visibility/IsNotTypeToVisibilityConverter.cs | 3 ++- .../UI/Converters/Visibility/IsTypeToVisibilityConverter.cs | 3 ++- .../Converters/Visibility/ObjectNullToVisibilityConverter.cs | 3 ++- .../Converters/Visibility/StringEmptyToVisibilityConverter.cs | 3 ++- .../UI/Dialogs/Downloader/Downloader.xaml.cs | 3 ++- .../UI/Dialogs/Downloader/DownloaderResult.cs | 3 ++- .../UI/Dialogs/Downloader/DownloaderViewModel.cs | 3 ++- .../UI/Dialogs/DriveSelection/DriveSelectionDialog.xaml.cs | 3 ++- .../UI/Dialogs/DriveSelection/DriveSelectionViewModel.cs | 3 ++- .../UI/Dialogs/DriveSelection/DriveViewModel.cs | 3 ++- .../UI/Dialogs/GamesSelection/GamesSelectionResult.cs | 3 ++- .../UI/Dialogs/ItemSelection/ItemSelectionDialog.xaml.cs | 3 ++- .../UI/Dialogs/JumpListEdit/JumpListEditResult.cs | 3 ++- .../UI/Dialogs/Message/DialogMessageActionHandledEventArgs.cs | 3 ++- .../UI/Dialogs/Message/DialogMessageActionViewModel.cs | 3 ++- .../UI/Dialogs/Message/DialogMessageBox.xaml.cs | 3 ++- .../UI/Dialogs/Message/DialogMessageViewModel.cs | 3 ++- src/RayCarrot.RCP.Metro/UI/Dialogs/Message/MessageType.cs | 3 ++- .../UI/Dialogs/StringInput/StringInputDialog.xaml.cs | 3 ++- .../UI/Dialogs/StringInput/StringInputResult.cs | 3 ++- .../UI/Dialogs/StringInput/StringInputViewModel.cs | 3 ++- src/RayCarrot.RCP.Metro/UI/Taskbar/TaskbarManagerExtensions.cs | 3 ++- src/RayCarrot.RCP.Metro/UI/UserControls/AdminButton.xaml.cs | 3 ++- .../UI/UserControls/ButtonMapper/ButtonMapper.xaml.cs | 3 ++- .../ButtonMapper/ButtonMapperHotKeyValidationRule.cs | 3 ++- .../UserControls/ButtonMapper/ButtonMapperKeyItemViewModel.cs | 3 ++- .../UI/UserControls/ButtonMapper/KeyToHotKeyConverter.cs | 3 ++- .../UI/UserControls/ButtonMapper/KeyToStringConverter.cs | 3 ++- .../GraphicsModeSelection/GraphicsModeSelection.xaml.cs | 3 ++- .../GraphicsModeSelection/GraphicsModeSelectionViewModel.cs | 3 ++- .../GraphicsModeSelection/GraphicsModeToStringConverter.cs | 3 ++- .../GraphicsModeSelection/GraphicsModeValidationRule.cs | 3 ++- src/RayCarrot.RCP.Metro/UI/UserControls/InfoIcon.xaml.cs | 3 ++- .../DirectoryExistsAndNotEmptyValidationRule.cs | 3 ++- .../Files and Directories/DirectoryExistsValidationRule.cs | 3 ++- .../FileExistsAndNotEmptyValidationRule.cs | 3 ++- .../Files and Directories/FileExistsValidationRule.cs | 3 ++- .../UI/ValidationRules/NotEmptyValidationRule.cs | 3 ++- src/RayCarrot.RCP.Metro/UI/Windows/Base/BaseIconWindow.cs | 3 ++- src/RayCarrot.RCP.Metro/UI/Windows/Base/BaseWindow.cs | 3 ++- .../UI/Windows/FirstLaunchInfoDialog.xaml.cs | 3 ++- src/RayCarrot.RCP.Metro/UI/Windows/LicenseDialog.xaml.cs | 3 ++- .../UI/Windows/LogViewer/LogItemViewModel.cs | 3 ++- src/RayCarrot.RCP.Metro/UI/Windows/LogViewer/LogViewer.xaml.cs | 3 ++- .../UI/Windows/LogViewer/LogViewerViewModel.cs | 3 ++- src/RayCarrot.RCP.Metro/Updater/IUpdaterManager.cs | 3 ++- src/RayCarrot.RCP.Metro/Updater/RCPUpdaterManager.cs | 3 ++- src/RayCarrot.RCP.Metro/Updater/UpdaterCheckResult.cs | 3 ++- 207 files changed, 408 insertions(+), 201 deletions(-) diff --git a/TODO.md b/TODO.md index 3009826d3..9221e0295 100644 --- a/TODO.md +++ b/TODO.md @@ -41,6 +41,7 @@ Open with (external) -> ``` ## 🧑‍💻 Code Cleanup +- Remove remaining `#nullable disable` - these were temporarily added to every file when migrating the codebase to globally enabling nullable reference types - Be more consistent with usage of namespaces - Replace `Fody.PropertyChanged` with `MVVMToolkit` using partial properties - this requires every ViewModel class to be updated - Split localization sheet into multiple sheets for things like game titles, level names, Mod Loader, Archive Explorer etc. diff --git a/src/RayCarrot.RCP.Metro/AppData/AppUserData.Aliases.v12.0.0.cs b/src/RayCarrot.RCP.Metro/AppData/AppUserData.Aliases.v12.0.0.cs index 3df6cda85..4c0461822 100644 --- a/src/RayCarrot.RCP.Metro/AppData/AppUserData.Aliases.v12.0.0.cs +++ b/src/RayCarrot.RCP.Metro/AppData/AppUserData.Aliases.v12.0.0.cs @@ -1,4 +1,5 @@ -using Newtonsoft.Json; +#nullable disable +using Newtonsoft.Json; using PropertyChanged; using RayCarrot.RCP.Metro.Archive; diff --git a/src/RayCarrot.RCP.Metro/AppData/AppUserData.Aliases.v14.0.0.cs b/src/RayCarrot.RCP.Metro/AppData/AppUserData.Aliases.v14.0.0.cs index 4e7ccb81e..b9ec313a0 100644 --- a/src/RayCarrot.RCP.Metro/AppData/AppUserData.Aliases.v14.0.0.cs +++ b/src/RayCarrot.RCP.Metro/AppData/AppUserData.Aliases.v14.0.0.cs @@ -1,4 +1,5 @@ -using Newtonsoft.Json; +#nullable disable +using Newtonsoft.Json; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/AppData/AppUserData.cs b/src/RayCarrot.RCP.Metro/AppData/AppUserData.cs index dfcd08c9a..42207510e 100644 --- a/src/RayCarrot.RCP.Metro/AppData/AppUserData.cs +++ b/src/RayCarrot.RCP.Metro/AppData/AppUserData.cs @@ -1,3 +1,4 @@ +#nullable disable using System.Reflection; using RayCarrot.RCP.Metro.Archive; using RayCarrot.RCP.Metro.Archive.CPA; diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/GAM_DisplayFixMode.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/GAM_DisplayFixMode.cs index 8b5e08b72..983f0ef09 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/GAM_DisplayFixMode.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/GAM_DisplayFixMode.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; [Flags] public enum GAM_DisplayFixMode : byte diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/GAM_EngineMode.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/GAM_EngineMode.cs index 9b761d86d..0979ae584 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/GAM_EngineMode.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/GAM_EngineMode.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; public enum GAM_EngineMode : byte { diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/GAM_EngineStructure.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/GAM_EngineStructure.cs index 14571a510..01c104579 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/GAM_EngineStructure.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/GAM_EngineStructure.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/IPT_InputMode.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/IPT_InputMode.cs index b830e0db5..e20928cb7 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/IPT_InputMode.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/IPT_InputMode.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; public enum IPT_InputMode : byte { diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/CPAPs1SaveBlock.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/CPAPs1SaveBlock.cs index 3ce3ccb42..245ed7f98 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/CPAPs1SaveBlock.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/CPAPs1SaveBlock.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock1.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock1.cs index 359a2c363..ebaa37943 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock1.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock1.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock2.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock2.cs index 2a0ff95ea..c1abffe91 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock2.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock2.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock3.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock3.cs index 716887db9..b2a836e4d 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock3.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveBlock3.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveData.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveData.cs index bc8c86944..eb9706c1e 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveData.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/Rayman2Ps1SaveData.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushLevelSave.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushLevelSave.cs index 0269206d6..3a929feff 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushLevelSave.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushLevelSave.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveBlock1.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveBlock1.cs index 05e29ccf3..8adceeeb9 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveBlock1.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveBlock1.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveBlock2.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveBlock2.cs index 56d5d67af..ec0774458 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveBlock2.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveBlock2.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveBlock3.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveBlock3.cs index 927406ba5..6d5d4b803 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveBlock3.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveBlock3.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveData.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveData.cs index 2db1fc58f..50f1098b8 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveData.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/PS1/RaymanRushPs1SaveData.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/PS2/Rayman2Ps2SaveData.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/PS2/Rayman2Ps2SaveData.cs index d92e2c5e6..8298d1764 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/PS2/Rayman2Ps2SaveData.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/PS2/Rayman2Ps2SaveData.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/CPA/PS2/Rayman2Ps2SaveInfo.cs b/src/RayCarrot.RCP.Metro/Binary/CPA/PS2/Rayman2Ps2SaveInfo.cs index 1fd7d5707..662eb5901 100644 --- a/src/RayCarrot.RCP.Metro/Binary/CPA/PS2/Rayman2Ps2SaveInfo.cs +++ b/src/RayCarrot.RCP.Metro/Binary/CPA/PS2/Rayman2Ps2SaveInfo.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/GameMaker/GameMaker_DSMap.cs b/src/RayCarrot.RCP.Metro/Binary/GameMaker/GameMaker_DSMap.cs index 6cbdcded5..85bfde8a3 100644 --- a/src/RayCarrot.RCP.Metro/Binary/GameMaker/GameMaker_DSMap.cs +++ b/src/RayCarrot.RCP.Metro/Binary/GameMaker/GameMaker_DSMap.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/GameMaker/GameMaker_DSMapDataObject.cs b/src/RayCarrot.RCP.Metro/Binary/GameMaker/GameMaker_DSMapDataObject.cs index c784abcf0..49387ab27 100644 --- a/src/RayCarrot.RCP.Metro/Binary/GameMaker/GameMaker_DSMapDataObject.cs +++ b/src/RayCarrot.RCP.Metro/Binary/GameMaker/GameMaker_DSMapDataObject.cs @@ -1,4 +1,5 @@ -using System.Text; +#nullable disable +using System.Text; using BinarySerializer; using Newtonsoft.Json; diff --git a/src/RayCarrot.RCP.Metro/Binary/GameMaker/GameMaker_DSMapEntry.cs b/src/RayCarrot.RCP.Metro/Binary/GameMaker/GameMaker_DSMapEntry.cs index 2f3b632b1..36e7c9906 100644 --- a/src/RayCarrot.RCP.Metro/Binary/GameMaker/GameMaker_DSMapEntry.cs +++ b/src/RayCarrot.RCP.Metro/Binary/GameMaker/GameMaker_DSMapEntry.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/Gba/R3/R3GBA_SaveData.cs b/src/RayCarrot.RCP.Metro/Binary/Gba/R3/R3GBA_SaveData.cs index b301fead0..30bf7ad36 100644 --- a/src/RayCarrot.RCP.Metro/Binary/Gba/R3/R3GBA_SaveData.cs +++ b/src/RayCarrot.RCP.Metro/Binary/Gba/R3/R3GBA_SaveData.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/Gba/R3/R3GBA_SaveSlot.cs b/src/RayCarrot.RCP.Metro/Binary/Gba/R3/R3GBA_SaveSlot.cs index 57e3ba695..ab6040884 100644 --- a/src/RayCarrot.RCP.Metro/Binary/Gba/R3/R3GBA_SaveSlot.cs +++ b/src/RayCarrot.RCP.Metro/Binary/Gba/R3/R3GBA_SaveSlot.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_Highscore.cs b/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_Highscore.cs index 3bef8ebb6..f7530383b 100644 --- a/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_Highscore.cs +++ b/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_Highscore.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_LevelSave.cs b/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_LevelSave.cs index 3d332c12b..605aaae1d 100644 --- a/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_LevelSave.cs +++ b/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_LevelSave.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_SaveData.cs b/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_SaveData.cs index 0b121aa50..01c837885 100644 --- a/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_SaveData.cs +++ b/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_SaveData.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_SaveSlot.cs b/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_SaveSlot.cs index 789d3253b..24125889d 100644 --- a/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_SaveSlot.cs +++ b/src/RayCarrot.RCP.Metro/Binary/Gba/RHR/RHR_SaveSlot.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/Gba/RRR/RRRGBA_SaveData.cs b/src/RayCarrot.RCP.Metro/Binary/Gba/RRR/RRRGBA_SaveData.cs index 5109ac483..226b3de55 100644 --- a/src/RayCarrot.RCP.Metro/Binary/Gba/RRR/RRRGBA_SaveData.cs +++ b/src/RayCarrot.RCP.Metro/Binary/Gba/RRR/RRRGBA_SaveData.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/Gba/RRR/RRRGBA_SaveSlot.cs b/src/RayCarrot.RCP.Metro/Binary/Gba/RRR/RRRGBA_SaveSlot.cs index 3863912c3..bf7a8f23e 100644 --- a/src/RayCarrot.RCP.Metro/Binary/Gba/RRR/RRRGBA_SaveSlot.cs +++ b/src/RayCarrot.RCP.Metro/Binary/Gba/RRR/RRRGBA_SaveSlot.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/Jade/Jade_BIG_BigFile.cs b/src/RayCarrot.RCP.Metro/Binary/Jade/Jade_BIG_BigFile.cs index 426e8dd77..6bfb5e68e 100644 --- a/src/RayCarrot.RCP.Metro/Binary/Jade/Jade_BIG_BigFile.cs +++ b/src/RayCarrot.RCP.Metro/Binary/Jade/Jade_BIG_BigFile.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/Jade/Jade_BIG_FatFile.cs b/src/RayCarrot.RCP.Metro/Binary/Jade/Jade_BIG_FatFile.cs index 7087a255d..1a12fd661 100644 --- a/src/RayCarrot.RCP.Metro/Binary/Jade/Jade_BIG_FatFile.cs +++ b/src/RayCarrot.RCP.Metro/Binary/Jade/Jade_BIG_FatFile.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/PS1ISO/PS1ISO.cs b/src/RayCarrot.RCP.Metro/Binary/PS1ISO/PS1ISO.cs index 7939ba3ad..ebadef512 100644 --- a/src/RayCarrot.RCP.Metro/Binary/PS1ISO/PS1ISO.cs +++ b/src/RayCarrot.RCP.Metro/Binary/PS1ISO/PS1ISO.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; using BinarySerializer.Disk.ISO9660; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/PS1ISO/PS1ISOLicense.cs b/src/RayCarrot.RCP.Metro/Binary/PS1ISO/PS1ISOLicense.cs index 0357bb63c..55918634d 100644 --- a/src/RayCarrot.RCP.Metro/Binary/PS1ISO/PS1ISOLicense.cs +++ b/src/RayCarrot.RCP.Metro/Binary/PS1ISO/PS1ISOLicense.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/ProcessMemoryStreamFile.cs b/src/RayCarrot.RCP.Metro/Binary/ProcessMemoryStreamFile.cs index 48c75439e..a8514d9ac 100644 --- a/src/RayCarrot.RCP.Metro/Binary/ProcessMemoryStreamFile.cs +++ b/src/RayCarrot.RCP.Metro/Binary/ProcessMemoryStreamFile.cs @@ -1,4 +1,5 @@ -using System.IO; +#nullable disable +using System.IO; using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SavSlotDesc.cs b/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SavSlotDesc.cs index a0be78e43..535f577af 100644 --- a/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SavSlotDesc.cs +++ b/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SavSlotDesc.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SaveFile.cs b/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SaveFile.cs index 40899a166..ba8a29103 100644 --- a/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SaveFile.cs +++ b/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SaveFile.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SaveSlot.cs b/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SaveSlot.cs index 4b31f357c..dac74f797 100644 --- a/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SaveSlot.cs +++ b/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_SaveSlot.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_UniversSave.cs b/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_UniversSave.cs index 68d73c27e..dc86fa192 100644 --- a/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_UniversSave.cs +++ b/src/RayCarrot.RCP.Metro/Binary/RRR/RRR_UniversSave.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_MiniGame.cs b/src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_MiniGame.cs index cf0c2aeb3..9c631bb03 100644 --- a/src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_MiniGame.cs +++ b/src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_MiniGame.cs @@ -1,3 +1,4 @@ +#nullable disable using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_SaveFile.cs b/src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_SaveFile.cs index 661a9fc30..2f142fdad 100644 --- a/src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_SaveFile.cs +++ b/src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_SaveFile.cs @@ -1,3 +1,4 @@ +#nullable disable using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_ScoreEntry.cs b/src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_ScoreEntry.cs index e54985040..b5caa0797 100644 --- a/src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_ScoreEntry.cs +++ b/src/RayCarrot.RCP.Metro/Binary/RRR2/RRR2_ScoreEntry.cs @@ -1,3 +1,4 @@ +#nullable disable using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/Ubisoft/UPC_StorageFile.cs b/src/RayCarrot.RCP.Metro/Binary/Ubisoft/UPC_StorageFile.cs index b114752fb..e3267d75c 100644 --- a/src/RayCarrot.RCP.Metro/Binary/Ubisoft/UPC_StorageFile.cs +++ b/src/RayCarrot.RCP.Metro/Binary/Ubisoft/UPC_StorageFile.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/Unity/Unity_PlayerPrefs.cs b/src/RayCarrot.RCP.Metro/Binary/Unity/Unity_PlayerPrefs.cs index 6f8a4d286..b868a10a5 100644 --- a/src/RayCarrot.RCP.Metro/Binary/Unity/Unity_PlayerPrefs.cs +++ b/src/RayCarrot.RCP.Metro/Binary/Unity/Unity_PlayerPrefs.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Binary/Unity/Unity_PlayerPrefsEntry.cs b/src/RayCarrot.RCP.Metro/Binary/Unity/Unity_PlayerPrefsEntry.cs index fa513633b..a3fa262f8 100644 --- a/src/RayCarrot.RCP.Metro/Binary/Unity/Unity_PlayerPrefsEntry.cs +++ b/src/RayCarrot.RCP.Metro/Binary/Unity/Unity_PlayerPrefsEntry.cs @@ -1,4 +1,5 @@ -using System.Text; +#nullable disable +using System.Text; using BinarySerializer; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Helpers/Extensions/EnumExtensions.cs b/src/RayCarrot.RCP.Metro/Helpers/Extensions/EnumExtensions.cs index e4a24baba..e5dc64975 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/Extensions/EnumExtensions.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/Extensions/EnumExtensions.cs @@ -1,4 +1,5 @@ -using System.Reflection; +#nullable disable +using System.Reflection; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Helpers/Extensions/EnumerableExtensions.cs b/src/RayCarrot.RCP.Metro/Helpers/Extensions/EnumerableExtensions.cs index ce97683d8..cf940ccbd 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/Extensions/EnumerableExtensions.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/Extensions/EnumerableExtensions.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// Extension methods for an diff --git a/src/RayCarrot.RCP.Metro/Helpers/Extensions/ObjectExtensions.cs b/src/RayCarrot.RCP.Metro/Helpers/Extensions/ObjectExtensions.cs index cbaba69cc..1589501f2 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/Extensions/ObjectExtensions.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/Extensions/ObjectExtensions.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// Extension methods for an diff --git a/src/RayCarrot.RCP.Metro/Helpers/Extensions/StringExtensions.cs b/src/RayCarrot.RCP.Metro/Helpers/Extensions/StringExtensions.cs index a83b30af9..1cab2ff02 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/Extensions/StringExtensions.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/Extensions/StringExtensions.cs @@ -1,4 +1,5 @@ -using System.Diagnostics.CodeAnalysis; +#nullable disable +using System.Diagnostics.CodeAnalysis; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Helpers/Extensions/TaskExtensions.cs b/src/RayCarrot.RCP.Metro/Helpers/Extensions/TaskExtensions.cs index 5e9c1f527..40dbb9853 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/Extensions/TaskExtensions.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/Extensions/TaskExtensions.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; public static class TaskExtensions { diff --git a/src/RayCarrot.RCP.Metro/Helpers/Extensions/VisualExtensions.cs b/src/RayCarrot.RCP.Metro/Helpers/Extensions/VisualExtensions.cs index 68c5118ef..3391db4ec 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/Extensions/VisualExtensions.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/Extensions/VisualExtensions.cs @@ -1,4 +1,5 @@ -using System.Windows; +#nullable disable +using System.Windows; using System.Windows.Media; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Helpers/Extensions/WindowExtensions.cs b/src/RayCarrot.RCP.Metro/Helpers/Extensions/WindowExtensions.cs index af58be058..92ce3d13f 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/Extensions/WindowExtensions.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/Extensions/WindowExtensions.cs @@ -1,4 +1,5 @@ -using System.Reflection; +#nullable disable +using System.Reflection; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Helpers/JsonConverters/ByteArrayHexConverter.cs b/src/RayCarrot.RCP.Metro/Helpers/JsonConverters/ByteArrayHexConverter.cs index f31eb6f7d..73e00a5c9 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/JsonConverters/ByteArrayHexConverter.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/JsonConverters/ByteArrayHexConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; using Newtonsoft.Json; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Helpers/JsonConverters/SimpleTypeConverter.cs b/src/RayCarrot.RCP.Metro/Helpers/JsonConverters/SimpleTypeConverter.cs index 321e2f3e1..d1b38ae5f 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/JsonConverters/SimpleTypeConverter.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/JsonConverters/SimpleTypeConverter.cs @@ -1,4 +1,5 @@ -using System.Reflection; +#nullable disable +using System.Reflection; using Newtonsoft.Json; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Helpers/JsonHelpers.cs b/src/RayCarrot.RCP.Metro/Helpers/JsonHelpers.cs index 8318223d9..ee760866c 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/JsonHelpers.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/JsonHelpers.cs @@ -1,4 +1,5 @@ -using System.IO; +#nullable disable +using System.IO; using System.Net; using System.Text; using Newtonsoft.Json; diff --git a/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/IStatusUpdated.cs b/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/IStatusUpdated.cs index ba8805061..d2528d885 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/IStatusUpdated.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/IStatusUpdated.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// Contains information for keeping track of the status of a running operation diff --git a/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/ItemsOperationProgress.cs b/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/ItemsOperationProgress.cs index 47f907e51..23ef0467e 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/ItemsOperationProgress.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/ItemsOperationProgress.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// Contains information for an item during an ongoing operation diff --git a/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/OperationProgressEventArgs.cs b/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/OperationProgressEventArgs.cs index 785d0c42e..9a1c73455 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/OperationProgressEventArgs.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/OperationProgressEventArgs.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// Event arguments for events during an operation diff --git a/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/OperationState.cs b/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/OperationState.cs index 2b976eb78..82c94ede8 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/OperationState.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/OperationState.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// The available states of an ongoing operation diff --git a/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/Progress.cs b/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/Progress.cs index bd1556068..61d3cc9d2 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/Progress.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/Progress.cs @@ -1,4 +1,5 @@ -using System.Diagnostics; +#nullable disable +using System.Diagnostics; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Helpers/Patcher/FilePatcher.cs b/src/RayCarrot.RCP.Metro/Helpers/Patcher/FilePatcher.cs index 8ef1a9689..6845ea54c 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/Patcher/FilePatcher.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/Patcher/FilePatcher.cs @@ -1,4 +1,5 @@ -using System.IO; +#nullable disable +using System.IO; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Helpers/Patcher/FilePatcher_Patch.cs b/src/RayCarrot.RCP.Metro/Helpers/Patcher/FilePatcher_Patch.cs index d580bd22b..bb9d76bb7 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/Patcher/FilePatcher_Patch.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/Patcher/FilePatcher_Patch.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// Data for the diff --git a/src/RayCarrot.RCP.Metro/Helpers/Windows/ShellThumbnailExtensions.cs b/src/RayCarrot.RCP.Metro/Helpers/Windows/ShellThumbnailExtensions.cs index 3ed9284fa..6df081970 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/Windows/ShellThumbnailExtensions.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/Windows/ShellThumbnailExtensions.cs @@ -1,4 +1,5 @@ -using Microsoft.WindowsAPICodePack.Shell; +#nullable disable +using Microsoft.WindowsAPICodePack.Shell; using System.Drawing; using System.Drawing.Imaging; using System.Runtime.InteropServices; diff --git a/src/RayCarrot.RCP.Metro/Helpers/Windows/ShellThumbnailSize.cs b/src/RayCarrot.RCP.Metro/Helpers/Windows/ShellThumbnailSize.cs index 66d7b3122..5ba5e9221 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/Windows/ShellThumbnailSize.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/Windows/ShellThumbnailSize.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// The available shell thumbnail and icon sizes diff --git a/src/RayCarrot.RCP.Metro/Helpers/Windows/WindowsHelpers.cs b/src/RayCarrot.RCP.Metro/Helpers/Windows/WindowsHelpers.cs index afb84d7f2..b731130db 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/Windows/WindowsHelpers.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/Windows/WindowsHelpers.cs @@ -1,4 +1,5 @@ -using IWshRuntimeLibrary; +#nullable disable +using IWshRuntimeLibrary; using System.ComponentModel; using System.Diagnostics; using System.Drawing; diff --git a/src/RayCarrot.RCP.Metro/IO/FileSystemPath/FileSystemPathConverter.cs b/src/RayCarrot.RCP.Metro/IO/FileSystemPath/FileSystemPathConverter.cs index b9ee30f10..ec81af004 100644 --- a/src/RayCarrot.RCP.Metro/IO/FileSystemPath/FileSystemPathConverter.cs +++ b/src/RayCarrot.RCP.Metro/IO/FileSystemPath/FileSystemPathConverter.cs @@ -1,4 +1,5 @@ -using System.ComponentModel; +#nullable disable +using System.ComponentModel; using System.Globalization; using System.IO; diff --git a/src/RayCarrot.RCP.Metro/IO/FileSystemPath/FileSystemPathExtensions.cs b/src/RayCarrot.RCP.Metro/IO/FileSystemPath/FileSystemPathExtensions.cs index 7c5d779d6..d65c54c8f 100644 --- a/src/RayCarrot.RCP.Metro/IO/FileSystemPath/FileSystemPathExtensions.cs +++ b/src/RayCarrot.RCP.Metro/IO/FileSystemPath/FileSystemPathExtensions.cs @@ -1,4 +1,5 @@ -using System.IO; +#nullable disable +using System.IO; using System.Security.Cryptography; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Installer/GameInstaller.cs b/src/RayCarrot.RCP.Metro/Installer/GameInstaller.cs index 8b810355c..94a1fab47 100644 --- a/src/RayCarrot.RCP.Metro/Installer/GameInstaller.cs +++ b/src/RayCarrot.RCP.Metro/Installer/GameInstaller.cs @@ -1,4 +1,5 @@ -using System.IO; +#nullable disable +using System.IO; using System.Net; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Installer/GameInstallerDialog.xaml.cs b/src/RayCarrot.RCP.Metro/Installer/GameInstallerDialog.xaml.cs index 8f11b7aba..d91b403ca 100644 --- a/src/RayCarrot.RCP.Metro/Installer/GameInstallerDialog.xaml.cs +++ b/src/RayCarrot.RCP.Metro/Installer/GameInstallerDialog.xaml.cs @@ -1,4 +1,5 @@ -using Microsoft.WindowsAPICodePack.Taskbar; +#nullable disable +using Microsoft.WindowsAPICodePack.Taskbar; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Installer/GameInstaller_Data.cs b/src/RayCarrot.RCP.Metro/Installer/GameInstaller_Data.cs index 4929f6898..eae7beb82 100644 --- a/src/RayCarrot.RCP.Metro/Installer/GameInstaller_Data.cs +++ b/src/RayCarrot.RCP.Metro/Installer/GameInstaller_Data.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// Install data for installing a game diff --git a/src/RayCarrot.RCP.Metro/Installer/GameInstaller_DriveInfo.cs b/src/RayCarrot.RCP.Metro/Installer/GameInstaller_DriveInfo.cs index 70265f384..dd46f69b9 100644 --- a/src/RayCarrot.RCP.Metro/Installer/GameInstaller_DriveInfo.cs +++ b/src/RayCarrot.RCP.Metro/Installer/GameInstaller_DriveInfo.cs @@ -1,4 +1,5 @@ -using System.IO; +#nullable disable +using System.IO; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Installer/GameInstaller_Item.cs b/src/RayCarrot.RCP.Metro/Installer/GameInstaller_Item.cs index e7aad0070..5a46d378b 100644 --- a/src/RayCarrot.RCP.Metro/Installer/GameInstaller_Item.cs +++ b/src/RayCarrot.RCP.Metro/Installer/GameInstaller_Item.cs @@ -1,4 +1,5 @@ -using System.IO; +#nullable disable +using System.IO; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Installer/GameInstaller_ItemStage.cs b/src/RayCarrot.RCP.Metro/Installer/GameInstaller_ItemStage.cs index 1d77a5d01..4046bf59f 100644 --- a/src/RayCarrot.RCP.Metro/Installer/GameInstaller_ItemStage.cs +++ b/src/RayCarrot.RCP.Metro/Installer/GameInstaller_ItemStage.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// The specific stage of an item during a game installation diff --git a/src/RayCarrot.RCP.Metro/Installer/GameInstaller_Result.cs b/src/RayCarrot.RCP.Metro/Installer/GameInstaller_Result.cs index 56ab44e81..f41a7fbda 100644 --- a/src/RayCarrot.RCP.Metro/Installer/GameInstaller_Result.cs +++ b/src/RayCarrot.RCP.Metro/Installer/GameInstaller_Result.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// The result for a game installation diff --git a/src/RayCarrot.RCP.Metro/Installer/Games/InstallerGames.Designer.cs b/src/RayCarrot.RCP.Metro/Installer/Games/InstallerGames.Designer.cs index 807467d1b..7b4864750 100644 --- a/src/RayCarrot.RCP.Metro/Installer/Games/InstallerGames.Designer.cs +++ b/src/RayCarrot.RCP.Metro/Installer/Games/InstallerGames.Designer.cs @@ -1,4 +1,5 @@ -//------------------------------------------------------------------------------ +#nullable disable +//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.42000 diff --git a/src/RayCarrot.RCP.Metro/Legacy/Patcher/Library/PatchLibraryPackage.cs b/src/RayCarrot.RCP.Metro/Legacy/Patcher/Library/PatchLibraryPackage.cs index f10443d2c..5e1f0981b 100644 --- a/src/RayCarrot.RCP.Metro/Legacy/Patcher/Library/PatchLibraryPackage.cs +++ b/src/RayCarrot.RCP.Metro/Legacy/Patcher/Library/PatchLibraryPackage.cs @@ -1,4 +1,5 @@ -using System.Text; +#nullable disable +using System.Text; using BinarySerializer; namespace RayCarrot.RCP.Metro.Legacy.Patcher; diff --git a/src/RayCarrot.RCP.Metro/Legacy/Patcher/Library/PatchLibraryPackageHistory.cs b/src/RayCarrot.RCP.Metro/Legacy/Patcher/Library/PatchLibraryPackageHistory.cs index 9479bcfa1..c6d8689c1 100644 --- a/src/RayCarrot.RCP.Metro/Legacy/Patcher/Library/PatchLibraryPackageHistory.cs +++ b/src/RayCarrot.RCP.Metro/Legacy/Patcher/Library/PatchLibraryPackageHistory.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro.Legacy.Patcher; diff --git a/src/RayCarrot.RCP.Metro/Legacy/Patcher/Library/PatchLibraryPackagePatchEntry.cs b/src/RayCarrot.RCP.Metro/Legacy/Patcher/Library/PatchLibraryPackagePatchEntry.cs index 6648bc23e..f46de2c5b 100644 --- a/src/RayCarrot.RCP.Metro/Legacy/Patcher/Library/PatchLibraryPackagePatchEntry.cs +++ b/src/RayCarrot.RCP.Metro/Legacy/Patcher/Library/PatchLibraryPackagePatchEntry.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro.Legacy.Patcher; diff --git a/src/RayCarrot.RCP.Metro/Legacy/Patcher/PackagedResourceChecksum.cs b/src/RayCarrot.RCP.Metro/Legacy/Patcher/PackagedResourceChecksum.cs index 2dd8bd9cf..8f197ae2e 100644 --- a/src/RayCarrot.RCP.Metro/Legacy/Patcher/PackagedResourceChecksum.cs +++ b/src/RayCarrot.RCP.Metro/Legacy/Patcher/PackagedResourceChecksum.cs @@ -1,4 +1,5 @@ -using System.IO; +#nullable disable +using System.IO; using System.Security.Cryptography; using BinarySerializer; diff --git a/src/RayCarrot.RCP.Metro/Legacy/Patcher/PackagedResourceEntry.cs b/src/RayCarrot.RCP.Metro/Legacy/Patcher/PackagedResourceEntry.cs index cc2358d37..df8911043 100644 --- a/src/RayCarrot.RCP.Metro/Legacy/Patcher/PackagedResourceEntry.cs +++ b/src/RayCarrot.RCP.Metro/Legacy/Patcher/PackagedResourceEntry.cs @@ -1,4 +1,5 @@ -using System.IO; +#nullable disable +using System.IO; using System.IO.Compression; using BinarySerializer; diff --git a/src/RayCarrot.RCP.Metro/Legacy/Patcher/Patch/PatchPackage.cs b/src/RayCarrot.RCP.Metro/Legacy/Patcher/Patch/PatchPackage.cs index 10052d49d..a9c14105e 100644 --- a/src/RayCarrot.RCP.Metro/Legacy/Patcher/Patch/PatchPackage.cs +++ b/src/RayCarrot.RCP.Metro/Legacy/Patcher/Patch/PatchPackage.cs @@ -1,4 +1,5 @@ -using System.Text; +#nullable disable +using System.Text; using BinarySerializer; namespace RayCarrot.RCP.Metro.Legacy.Patcher; diff --git a/src/RayCarrot.RCP.Metro/Legacy/Patcher/Patch/PatchPackageChangelogEntry.cs b/src/RayCarrot.RCP.Metro/Legacy/Patcher/Patch/PatchPackageChangelogEntry.cs index 7a4726292..82f3bea02 100644 --- a/src/RayCarrot.RCP.Metro/Legacy/Patcher/Patch/PatchPackageChangelogEntry.cs +++ b/src/RayCarrot.RCP.Metro/Legacy/Patcher/Patch/PatchPackageChangelogEntry.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro.Legacy.Patcher; diff --git a/src/RayCarrot.RCP.Metro/Legacy/Patcher/Patch/PatchPackageMetadata.cs b/src/RayCarrot.RCP.Metro/Legacy/Patcher/Patch/PatchPackageMetadata.cs index 744235d52..4b85519a3 100644 --- a/src/RayCarrot.RCP.Metro/Legacy/Patcher/Patch/PatchPackageMetadata.cs +++ b/src/RayCarrot.RCP.Metro/Legacy/Patcher/Patch/PatchPackageMetadata.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro.Legacy.Patcher; diff --git a/src/RayCarrot.RCP.Metro/Legacy/Patcher/PatchFilePath.cs b/src/RayCarrot.RCP.Metro/Legacy/Patcher/PatchFilePath.cs index 90920150b..d76d2e600 100644 --- a/src/RayCarrot.RCP.Metro/Legacy/Patcher/PatchFilePath.cs +++ b/src/RayCarrot.RCP.Metro/Legacy/Patcher/PatchFilePath.cs @@ -3,6 +3,7 @@ namespace RayCarrot.RCP.Metro.Legacy.Patcher; +#nullable disable public class PatchFilePath : BinarySerializable { diff --git a/src/RayCarrot.RCP.Metro/Localization/LocString/ConstLocString.cs b/src/RayCarrot.RCP.Metro/Localization/LocString/ConstLocString.cs index ad96236de..b343fcea6 100644 --- a/src/RayCarrot.RCP.Metro/Localization/LocString/ConstLocString.cs +++ b/src/RayCarrot.RCP.Metro/Localization/LocString/ConstLocString.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; public class ConstLocString : LocalizedString { diff --git a/src/RayCarrot.RCP.Metro/Localization/LocString/GeneratedLocString.cs b/src/RayCarrot.RCP.Metro/Localization/LocString/GeneratedLocString.cs index 9faf2ac48..a8647671a 100644 --- a/src/RayCarrot.RCP.Metro/Localization/LocString/GeneratedLocString.cs +++ b/src/RayCarrot.RCP.Metro/Localization/LocString/GeneratedLocString.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// A localized string which gets generated from a func when the culture changes diff --git a/src/RayCarrot.RCP.Metro/Localization/LocString/LocalizedString.cs b/src/RayCarrot.RCP.Metro/Localization/LocString/LocalizedString.cs index 03be8fcb1..29c14989d 100644 --- a/src/RayCarrot.RCP.Metro/Localization/LocString/LocalizedString.cs +++ b/src/RayCarrot.RCP.Metro/Localization/LocString/LocalizedString.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Localization/LocString/ResourceLocString.cs b/src/RayCarrot.RCP.Metro/Localization/LocString/ResourceLocString.cs index ea948fbbd..370a31b9e 100644 --- a/src/RayCarrot.RCP.Metro/Localization/LocString/ResourceLocString.cs +++ b/src/RayCarrot.RCP.Metro/Localization/LocString/ResourceLocString.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; public class ResourceLocString : LocalizedString { diff --git a/src/RayCarrot.RCP.Metro/Localization/LocalizationManager.cs b/src/RayCarrot.RCP.Metro/Localization/LocalizationManager.cs index 4ba20d669..eab6fa9e4 100644 --- a/src/RayCarrot.RCP.Metro/Localization/LocalizationManager.cs +++ b/src/RayCarrot.RCP.Metro/Localization/LocalizationManager.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; using System.Windows; using Infralution.Localization.Wpf; diff --git a/src/RayCarrot.RCP.Metro/ModLoader/Modules/Deltas/DeltaChunk.cs b/src/RayCarrot.RCP.Metro/ModLoader/Modules/Deltas/DeltaChunk.cs index a66b18753..1f46ae6a3 100644 --- a/src/RayCarrot.RCP.Metro/ModLoader/Modules/Deltas/DeltaChunk.cs +++ b/src/RayCarrot.RCP.Metro/ModLoader/Modules/Deltas/DeltaChunk.cs @@ -1,4 +1,5 @@ -using BinarySerializer; +#nullable disable +using BinarySerializer; namespace RayCarrot.RCP.Metro.ModLoader.Modules.Deltas; diff --git a/src/RayCarrot.RCP.Metro/ModLoader/Modules/Deltas/DeltaFile.cs b/src/RayCarrot.RCP.Metro/ModLoader/Modules/Deltas/DeltaFile.cs index 15958729a..678bfd8a8 100644 --- a/src/RayCarrot.RCP.Metro/ModLoader/Modules/Deltas/DeltaFile.cs +++ b/src/RayCarrot.RCP.Metro/ModLoader/Modules/Deltas/DeltaFile.cs @@ -1,4 +1,5 @@ -using System.IO; +#nullable disable +using System.IO; using BinarySerializer; namespace RayCarrot.RCP.Metro.ModLoader.Modules.Deltas; diff --git a/src/RayCarrot.RCP.Metro/Services/AppUI/AppUIManager.cs b/src/RayCarrot.RCP.Metro/Services/AppUI/AppUIManager.cs index e214e1a3f..497a1dbc7 100644 --- a/src/RayCarrot.RCP.Metro/Services/AppUI/AppUIManager.cs +++ b/src/RayCarrot.RCP.Metro/Services/AppUI/AppUIManager.cs @@ -1,4 +1,5 @@ -using System.IO; +#nullable disable +using System.IO; using System.Net.Http; using System.Runtime.CompilerServices; using System.Windows; diff --git a/src/RayCarrot.RCP.Metro/Services/Browse/BaseBrowseViewModel.cs b/src/RayCarrot.RCP.Metro/Services/Browse/BaseBrowseViewModel.cs index 6bf16fae0..fcc8cb02a 100644 --- a/src/RayCarrot.RCP.Metro/Services/Browse/BaseBrowseViewModel.cs +++ b/src/RayCarrot.RCP.Metro/Services/Browse/BaseBrowseViewModel.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// A base class for browse view models diff --git a/src/RayCarrot.RCP.Metro/Services/Browse/Directory/DirectoryBrowserResult.cs b/src/RayCarrot.RCP.Metro/Services/Browse/Directory/DirectoryBrowserResult.cs index c2290c2ec..10dd9360a 100644 --- a/src/RayCarrot.RCP.Metro/Services/Browse/Directory/DirectoryBrowserResult.cs +++ b/src/RayCarrot.RCP.Metro/Services/Browse/Directory/DirectoryBrowserResult.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// The result when browsing for a directory diff --git a/src/RayCarrot.RCP.Metro/Services/Browse/Directory/DirectoryBrowserViewModel.cs b/src/RayCarrot.RCP.Metro/Services/Browse/Directory/DirectoryBrowserViewModel.cs index dca5896a8..6a2f9f3f5 100644 --- a/src/RayCarrot.RCP.Metro/Services/Browse/Directory/DirectoryBrowserViewModel.cs +++ b/src/RayCarrot.RCP.Metro/Services/Browse/Directory/DirectoryBrowserViewModel.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// A model to use when browsing for a directory diff --git a/src/RayCarrot.RCP.Metro/Services/Browse/Drive/DriveBrowserResult.cs b/src/RayCarrot.RCP.Metro/Services/Browse/Drive/DriveBrowserResult.cs index 8f424be00..c59742a0d 100644 --- a/src/RayCarrot.RCP.Metro/Services/Browse/Drive/DriveBrowserResult.cs +++ b/src/RayCarrot.RCP.Metro/Services/Browse/Drive/DriveBrowserResult.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// The result when browsing for a drive diff --git a/src/RayCarrot.RCP.Metro/Services/Browse/Drive/DriveBrowserViewModel.cs b/src/RayCarrot.RCP.Metro/Services/Browse/Drive/DriveBrowserViewModel.cs index cdc5746ef..76d8b6df3 100644 --- a/src/RayCarrot.RCP.Metro/Services/Browse/Drive/DriveBrowserViewModel.cs +++ b/src/RayCarrot.RCP.Metro/Services/Browse/Drive/DriveBrowserViewModel.cs @@ -1,4 +1,5 @@ -using System.IO; +#nullable disable +using System.IO; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Services/Browse/File/FileBrowserResult.cs b/src/RayCarrot.RCP.Metro/Services/Browse/File/FileBrowserResult.cs index 304f2bad3..94fbb5107 100644 --- a/src/RayCarrot.RCP.Metro/Services/Browse/File/FileBrowserResult.cs +++ b/src/RayCarrot.RCP.Metro/Services/Browse/File/FileBrowserResult.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// The result when browsing for a directory diff --git a/src/RayCarrot.RCP.Metro/Services/Browse/File/FileBrowserViewModel.cs b/src/RayCarrot.RCP.Metro/Services/Browse/File/FileBrowserViewModel.cs index a0dd4d0ef..c9d63aaa2 100644 --- a/src/RayCarrot.RCP.Metro/Services/Browse/File/FileBrowserViewModel.cs +++ b/src/RayCarrot.RCP.Metro/Services/Browse/File/FileBrowserViewModel.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// A model to use when browsing for a file diff --git a/src/RayCarrot.RCP.Metro/Services/Browse/RCPBrowseUIManager.cs b/src/RayCarrot.RCP.Metro/Services/Browse/RCPBrowseUIManager.cs index c296ee5ff..b9bce4a2d 100644 --- a/src/RayCarrot.RCP.Metro/Services/Browse/RCPBrowseUIManager.cs +++ b/src/RayCarrot.RCP.Metro/Services/Browse/RCPBrowseUIManager.cs @@ -1,4 +1,5 @@ -using Microsoft.Win32; +#nullable disable +using Microsoft.Win32; using Microsoft.WindowsAPICodePack.Dialogs; using System.Windows; diff --git a/src/RayCarrot.RCP.Metro/Services/Browse/SaveFile/SaveFileResult.cs b/src/RayCarrot.RCP.Metro/Services/Browse/SaveFile/SaveFileResult.cs index 467b16554..87ea0666e 100644 --- a/src/RayCarrot.RCP.Metro/Services/Browse/SaveFile/SaveFileResult.cs +++ b/src/RayCarrot.RCP.Metro/Services/Browse/SaveFile/SaveFileResult.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// The result when saving a file diff --git a/src/RayCarrot.RCP.Metro/Services/Browse/SaveFile/SaveFileViewModel.cs b/src/RayCarrot.RCP.Metro/Services/Browse/SaveFile/SaveFileViewModel.cs index c6e5957e2..e77c42182 100644 --- a/src/RayCarrot.RCP.Metro/Services/Browse/SaveFile/SaveFileViewModel.cs +++ b/src/RayCarrot.RCP.Metro/Services/Browse/SaveFile/SaveFileViewModel.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// The model to use when saving a file diff --git a/src/RayCarrot.RCP.Metro/Services/FileManager.cs b/src/RayCarrot.RCP.Metro/Services/FileManager.cs index fa2cd3363..edf1ccf78 100644 --- a/src/RayCarrot.RCP.Metro/Services/FileManager.cs +++ b/src/RayCarrot.RCP.Metro/Services/FileManager.cs @@ -1,4 +1,5 @@ -using System.Diagnostics; +#nullable disable +using System.Diagnostics; using System.IO; using System.Security.AccessControl; using System.Security.Principal; diff --git a/src/RayCarrot.RCP.Metro/Services/Message/IMessageUIManager.cs b/src/RayCarrot.RCP.Metro/Services/Message/IMessageUIManager.cs index 1c37430f3..329a8e6c5 100644 --- a/src/RayCarrot.RCP.Metro/Services/Message/IMessageUIManager.cs +++ b/src/RayCarrot.RCP.Metro/Services/Message/IMessageUIManager.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// A message UI Manager for managing message UI requests diff --git a/src/RayCarrot.RCP.Metro/Services/Message/MessageUIManagerExtensions.cs b/src/RayCarrot.RCP.Metro/Services/Message/MessageUIManagerExtensions.cs index 33ed300dc..9eca16766 100644 --- a/src/RayCarrot.RCP.Metro/Services/Message/MessageUIManagerExtensions.cs +++ b/src/RayCarrot.RCP.Metro/Services/Message/MessageUIManagerExtensions.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// Extension methods for diff --git a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/IDialogWindowControl.cs b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/IDialogWindowControl.cs index 8d5b0cd70..949660009 100644 --- a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/IDialogWindowControl.cs +++ b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/IDialogWindowControl.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; public interface IDialogWindowControl : IWindowControl where UserInput : UserInputViewModel diff --git a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/IWindowControl.cs b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/IWindowControl.cs index 099baf635..23d09f361 100644 --- a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/IWindowControl.cs +++ b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/IWindowControl.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// An abstract window control diff --git a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/WindowContentControl.cs b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/WindowContentControl.cs index 992be0154..7dc0ad92a 100644 --- a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/WindowContentControl.cs +++ b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/WindowContentControl.cs @@ -1,4 +1,5 @@ -using System.ComponentModel; +#nullable disable +using System.ComponentModel; using System.Windows.Controls; using System.Windows.Threading; diff --git a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Instance/ChildWindowInstance.cs b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Instance/ChildWindowInstance.cs index 9a305ecf8..5acef7e6e 100644 --- a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Instance/ChildWindowInstance.cs +++ b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Instance/ChildWindowInstance.cs @@ -1,4 +1,5 @@ -using System.ComponentModel; +#nullable disable +using System.ComponentModel; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Instance/StandardWindowInstance.cs b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Instance/StandardWindowInstance.cs index 5652eac71..0e45ef3cf 100644 --- a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Instance/StandardWindowInstance.cs +++ b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Instance/StandardWindowInstance.cs @@ -1,4 +1,5 @@ -using System.ComponentModel; +#nullable disable +using System.ComponentModel; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Instance/WindowInstance.cs b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Instance/WindowInstance.cs index 2f7f10043..929eff14f 100644 --- a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Instance/WindowInstance.cs +++ b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Instance/WindowInstance.cs @@ -1,4 +1,5 @@ -using System.ComponentModel; +#nullable disable +using System.ComponentModel; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Services/WindowDialog/ShowWindowFlags.cs b/src/RayCarrot.RCP.Metro/Services/WindowDialog/ShowWindowFlags.cs index f9d30c060..93e7bc71b 100644 --- a/src/RayCarrot.RCP.Metro/Services/WindowDialog/ShowWindowFlags.cs +++ b/src/RayCarrot.RCP.Metro/Services/WindowDialog/ShowWindowFlags.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// The available flags to use on diff --git a/src/RayCarrot.RCP.Metro/Services/WindowDialog/ViewModels/UserInputResult.cs b/src/RayCarrot.RCP.Metro/Services/WindowDialog/ViewModels/UserInputResult.cs index 9e5f675a5..1236aa9dc 100644 --- a/src/RayCarrot.RCP.Metro/Services/WindowDialog/ViewModels/UserInputResult.cs +++ b/src/RayCarrot.RCP.Metro/Services/WindowDialog/ViewModels/UserInputResult.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// The base model to use for a view model used as diff --git a/src/RayCarrot.RCP.Metro/Services/WindowDialog/ViewModels/UserInputViewModel.cs b/src/RayCarrot.RCP.Metro/Services/WindowDialog/ViewModels/UserInputViewModel.cs index a69baa3c4..05873e168 100644 --- a/src/RayCarrot.RCP.Metro/Services/WindowDialog/ViewModels/UserInputViewModel.cs +++ b/src/RayCarrot.RCP.Metro/Services/WindowDialog/ViewModels/UserInputViewModel.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// The base view model to use for a view model used to get user input diff --git a/src/RayCarrot.RCP.Metro/UI/AttachableForStyleBehavior.cs b/src/RayCarrot.RCP.Metro/UI/AttachableForStyleBehavior.cs index b9d3e9721..bfdb17093 100644 --- a/src/RayCarrot.RCP.Metro/UI/AttachableForStyleBehavior.cs +++ b/src/RayCarrot.RCP.Metro/UI/AttachableForStyleBehavior.cs @@ -1,4 +1,5 @@ -using System.Windows; +#nullable disable +using System.Windows; using Microsoft.Xaml.Behaviors; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Behaviors/DynamicTabAnimationBehavior.cs b/src/RayCarrot.RCP.Metro/UI/Behaviors/DynamicTabAnimationBehavior.cs index 5638257e7..9ea15d68b 100644 --- a/src/RayCarrot.RCP.Metro/UI/Behaviors/DynamicTabAnimationBehavior.cs +++ b/src/RayCarrot.RCP.Metro/UI/Behaviors/DynamicTabAnimationBehavior.cs @@ -1,4 +1,5 @@ -using System.Windows.Controls; +#nullable disable +using System.Windows.Controls; using MahApps.Metro.Controls; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Behaviors/FocusElementOnLoad.cs b/src/RayCarrot.RCP.Metro/UI/Behaviors/FocusElementOnLoad.cs index 4e11fde67..9aedcf878 100644 --- a/src/RayCarrot.RCP.Metro/UI/Behaviors/FocusElementOnLoad.cs +++ b/src/RayCarrot.RCP.Metro/UI/Behaviors/FocusElementOnLoad.cs @@ -1,4 +1,5 @@ -using System.Windows; +#nullable disable +using System.Windows; using Microsoft.Xaml.Behaviors; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Behaviors/FocusScrollViewerOnLoad.cs b/src/RayCarrot.RCP.Metro/UI/Behaviors/FocusScrollViewerOnLoad.cs index 6d977789b..0d7937d28 100644 --- a/src/RayCarrot.RCP.Metro/UI/Behaviors/FocusScrollViewerOnLoad.cs +++ b/src/RayCarrot.RCP.Metro/UI/Behaviors/FocusScrollViewerOnLoad.cs @@ -1,4 +1,5 @@ -using System.Windows; +#nullable disable +using System.Windows; using System.Windows.Controls; using Microsoft.Xaml.Behaviors; using System.Windows.Media; diff --git a/src/RayCarrot.RCP.Metro/UI/Behaviors/ListBoxSelectedItemsBehavior.cs b/src/RayCarrot.RCP.Metro/UI/Behaviors/ListBoxSelectedItemsBehavior.cs index f12aaa488..93aec5267 100644 --- a/src/RayCarrot.RCP.Metro/UI/Behaviors/ListBoxSelectedItemsBehavior.cs +++ b/src/RayCarrot.RCP.Metro/UI/Behaviors/ListBoxSelectedItemsBehavior.cs @@ -1,4 +1,5 @@ -using System.Windows; +#nullable disable +using System.Windows; using System.Windows.Controls; using Microsoft.Xaml.Behaviors; diff --git a/src/RayCarrot.RCP.Metro/UI/Behaviors/MultiSelectorSelectedItemsBehavior.cs b/src/RayCarrot.RCP.Metro/UI/Behaviors/MultiSelectorSelectedItemsBehavior.cs index f5089fcfa..089eb2f08 100644 --- a/src/RayCarrot.RCP.Metro/UI/Behaviors/MultiSelectorSelectedItemsBehavior.cs +++ b/src/RayCarrot.RCP.Metro/UI/Behaviors/MultiSelectorSelectedItemsBehavior.cs @@ -1,4 +1,5 @@ -using System.Windows; +#nullable disable +using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; using Microsoft.Xaml.Behaviors; diff --git a/src/RayCarrot.RCP.Metro/UI/Behaviors/SubTabControlBehavior.cs b/src/RayCarrot.RCP.Metro/UI/Behaviors/SubTabControlBehavior.cs index 41704c0b5..508dd359e 100644 --- a/src/RayCarrot.RCP.Metro/UI/Behaviors/SubTabControlBehavior.cs +++ b/src/RayCarrot.RCP.Metro/UI/Behaviors/SubTabControlBehavior.cs @@ -1,4 +1,5 @@ -using Microsoft.Xaml.Behaviors; +#nullable disable +using Microsoft.Xaml.Behaviors; using System.Windows; using System.Windows.Controls; using System.Windows.Input; diff --git a/src/RayCarrot.RCP.Metro/UI/Behaviors/UnifiedMarginBehavior.cs b/src/RayCarrot.RCP.Metro/UI/Behaviors/UnifiedMarginBehavior.cs index fbcda6694..9f4bd2139 100644 --- a/src/RayCarrot.RCP.Metro/UI/Behaviors/UnifiedMarginBehavior.cs +++ b/src/RayCarrot.RCP.Metro/UI/Behaviors/UnifiedMarginBehavior.cs @@ -1,4 +1,5 @@ -using System.Windows; +#nullable disable +using System.Windows; using System.Windows.Controls; using Microsoft.Xaml.Behaviors; diff --git a/src/RayCarrot.RCP.Metro/UI/Behaviors/UpdateTextBoxBindingOnEnterBehavior.cs b/src/RayCarrot.RCP.Metro/UI/Behaviors/UpdateTextBoxBindingOnEnterBehavior.cs index 8fb7c9f8b..2380a84c0 100644 --- a/src/RayCarrot.RCP.Metro/UI/Behaviors/UpdateTextBoxBindingOnEnterBehavior.cs +++ b/src/RayCarrot.RCP.Metro/UI/Behaviors/UpdateTextBoxBindingOnEnterBehavior.cs @@ -1,4 +1,5 @@ -using Microsoft.Xaml.Behaviors; +#nullable disable +using Microsoft.Xaml.Behaviors; using System.Windows.Controls; using System.Windows.Input; diff --git a/src/RayCarrot.RCP.Metro/UI/BindingProxy.cs b/src/RayCarrot.RCP.Metro/UI/BindingProxy.cs index 12700777e..5c7b6a7c7 100644 --- a/src/RayCarrot.RCP.Metro/UI/BindingProxy.cs +++ b/src/RayCarrot.RCP.Metro/UI/BindingProxy.cs @@ -1,4 +1,5 @@ -using System.Windows; +#nullable disable +using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Controls/BrowseBox/BrowseBox.cs b/src/RayCarrot.RCP.Metro/UI/Controls/BrowseBox/BrowseBox.cs index 17d2f5744..2418180a6 100644 --- a/src/RayCarrot.RCP.Metro/UI/Controls/BrowseBox/BrowseBox.cs +++ b/src/RayCarrot.RCP.Metro/UI/Controls/BrowseBox/BrowseBox.cs @@ -1,4 +1,5 @@ -using System.IO; +#nullable disable +using System.IO; using System.Windows; using System.Windows.Controls; using System.Windows.Input; diff --git a/src/RayCarrot.RCP.Metro/UI/Controls/DuoGrid/DuoGrid.cs b/src/RayCarrot.RCP.Metro/UI/Controls/DuoGrid/DuoGrid.cs index 0f8dca816..86d9e99be 100644 --- a/src/RayCarrot.RCP.Metro/UI/Controls/DuoGrid/DuoGrid.cs +++ b/src/RayCarrot.RCP.Metro/UI/Controls/DuoGrid/DuoGrid.cs @@ -1,4 +1,5 @@ -using System.Windows; +#nullable disable +using System.Windows; using System.Windows.Controls; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Controls/DuoGrid/DuoGridItem/DuoGridItem.cs b/src/RayCarrot.RCP.Metro/UI/Controls/DuoGrid/DuoGridItem/DuoGridItem.cs index e9b2c69bd..940aee30d 100644 --- a/src/RayCarrot.RCP.Metro/UI/Controls/DuoGrid/DuoGridItem/DuoGridItem.cs +++ b/src/RayCarrot.RCP.Metro/UI/Controls/DuoGrid/DuoGridItem/DuoGridItem.cs @@ -1,4 +1,5 @@ -using System.Windows; +#nullable disable +using System.Windows; using System.Windows.Controls; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Controls/MenuItemIcon.xaml.cs b/src/RayCarrot.RCP.Metro/UI/Controls/MenuItemIcon.xaml.cs index 8cafbb678..e96b89aec 100644 --- a/src/RayCarrot.RCP.Metro/UI/Controls/MenuItemIcon.xaml.cs +++ b/src/RayCarrot.RCP.Metro/UI/Controls/MenuItemIcon.xaml.cs @@ -1,4 +1,5 @@ -using MahApps.Metro.IconPacks; +#nullable disable +using MahApps.Metro.IconPacks; using System.Windows; using System.Windows.Controls; using System.Windows.Media; diff --git a/src/RayCarrot.RCP.Metro/UI/Controls/RCPChildWindow.cs b/src/RayCarrot.RCP.Metro/UI/Controls/RCPChildWindow.cs index b54fa1542..df34c53ab 100644 --- a/src/RayCarrot.RCP.Metro/UI/Controls/RCPChildWindow.cs +++ b/src/RayCarrot.RCP.Metro/UI/Controls/RCPChildWindow.cs @@ -1,4 +1,5 @@ -using MahApps.Metro.SimpleChildWindow; +#nullable disable +using MahApps.Metro.SimpleChildWindow; using System.Windows; using System.Windows.Controls; using System.Windows.Input; diff --git a/src/RayCarrot.RCP.Metro/UI/Controls/RadioButtonExtended.cs b/src/RayCarrot.RCP.Metro/UI/Controls/RadioButtonExtended.cs index 5859befd9..ed62860d4 100644 --- a/src/RayCarrot.RCP.Metro/UI/Controls/RadioButtonExtended.cs +++ b/src/RayCarrot.RCP.Metro/UI/Controls/RadioButtonExtended.cs @@ -1,4 +1,5 @@ -using System.Windows; +#nullable disable +using System.Windows; using System.Windows.Controls; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Controls/VMUserControl.cs b/src/RayCarrot.RCP.Metro/UI/Controls/VMUserControl.cs index 30f82dddc..b2618dc63 100644 --- a/src/RayCarrot.RCP.Metro/UI/Controls/VMUserControl.cs +++ b/src/RayCarrot.RCP.Metro/UI/Controls/VMUserControl.cs @@ -1,4 +1,5 @@ -using System.ComponentModel; +#nullable disable +using System.ComponentModel; using System.Windows.Controls; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Controls/VMWindow.cs b/src/RayCarrot.RCP.Metro/UI/Controls/VMWindow.cs index 8cf344735..de1df915a 100644 --- a/src/RayCarrot.RCP.Metro/UI/Controls/VMWindow.cs +++ b/src/RayCarrot.RCP.Metro/UI/Controls/VMWindow.cs @@ -1,4 +1,5 @@ -using System.ComponentModel; +#nullable disable +using System.ComponentModel; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/BaseValueConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/BaseValueConverter.cs index 3e59d8676..db28d2ce2 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/BaseValueConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/BaseValueConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; using System.Windows; using System.Windows.Data; using System.Windows.Markup; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/BooleanAndConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/BooleanAndConverter.cs index 2a8ecff53..9498b6bd2 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/BooleanAndConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/BooleanAndConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; using System.Windows.Data; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/EqualsToConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/EqualsToConverter.cs index aa6833b4e..2af3da095 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/EqualsToConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/EqualsToConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/InvertedBooleanConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/InvertedBooleanConverter.cs index c0c714261..a02e18472 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/InvertedBooleanConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/InvertedBooleanConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/InvertedEqualsToConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/InvertedEqualsToConverter.cs index 6fb0140ec..906918341 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/InvertedEqualsToConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/InvertedEqualsToConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/IsNotNullConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/IsNotNullConverter.cs index d1dc23602..e2c3f7db5 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/IsNotNullConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/IsNotNullConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/IsNullConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/IsNullConverter.cs index 16318e4df..9061d0dcd 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/IsNullConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/IsNullConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/PathExistsConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/PathExistsConverter.cs index 348d64226..df7e58350 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/PathExistsConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/PathExistsConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/PathNotExistsConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/PathNotExistsConverter.cs index 95222c706..05cb6f6c0 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Bool/PathNotExistsConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Bool/PathNotExistsConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Other/BooleanToDataGridSelectionModeConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Other/BooleanToDataGridSelectionModeConverter.cs index 79b77186a..cf2a11602 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Other/BooleanToDataGridSelectionModeConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Other/BooleanToDataGridSelectionModeConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; using System.Windows.Controls; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Other/BooleanToFluidMoveDurationConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Other/BooleanToFluidMoveDurationConverter.cs index cd25d2fb7..56c21b573 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Other/BooleanToFluidMoveDurationConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Other/BooleanToFluidMoveDurationConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Other/ByteEnumToIntConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Other/ByteEnumToIntConverter.cs index 07efba2e8..1c7bb3ab5 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Other/ByteEnumToIntConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Other/ByteEnumToIntConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Other/CultureNameToCultureInfoConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Other/CultureNameToCultureInfoConverter.cs index 63be626ed..af585b284 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Other/CultureNameToCultureInfoConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Other/CultureNameToCultureInfoConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Other/EnumToIntConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Other/EnumToIntConverter.cs index 6a6903113..2b6b959d1 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Other/EnumToIntConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Other/EnumToIntConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Other/EnumToListConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Other/EnumToListConverter.cs index e524b0c14..591cb7dd7 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Other/EnumToListConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Other/EnumToListConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Other/FileSystemPathToStringConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Other/FileSystemPathToStringConverter.cs index 8d6b02416..8f1f12505 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Other/FileSystemPathToStringConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Other/FileSystemPathToStringConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Other/GetDescendantByTypeConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Other/GetDescendantByTypeConverter.cs index 164a6a82f..13289c8b6 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Other/GetDescendantByTypeConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Other/GetDescendantByTypeConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; using System.Windows.Media; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Other/IntToStringConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Other/IntToStringConverter.cs index 1300cf378..88ee2096c 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Other/IntToStringConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Other/IntToStringConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Other/PositiveDoubleAdditionConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Other/PositiveDoubleAdditionConverter.cs index 1e5669756..0575f01e8 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Other/PositiveDoubleAdditionConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Other/PositiveDoubleAdditionConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Other/StringToFileSystemPathConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Other/StringToFileSystemPathConverter.cs index f41e41a77..689c3d051 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Other/StringToFileSystemPathConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Other/StringToFileSystemPathConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/BooleanToVisibilityConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/BooleanToVisibilityConverter.cs index 1827ca50c..ef50f7767 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/BooleanToVisibilityConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/BooleanToVisibilityConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/BooleanToVisibilityHiddenConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/BooleanToVisibilityHiddenConverter.cs index 2956e284a..d9be97263 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/BooleanToVisibilityHiddenConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/BooleanToVisibilityHiddenConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedBooleanToVisibilityConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedBooleanToVisibilityConverter.cs index eeea5e7c9..5c0dcd4f6 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedBooleanToVisibilityConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedBooleanToVisibilityConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedObjectNullToVisibilityConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedObjectNullToVisibilityConverter.cs index ea89d65e7..37b2edba4 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedObjectNullToVisibilityConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedObjectNullToVisibilityConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedObjectNullToVisibilityHiddenConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedObjectNullToVisibilityHiddenConverter.cs index 0d7849462..d8052bec0 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedObjectNullToVisibilityHiddenConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedObjectNullToVisibilityHiddenConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedStringEmptyToVisibilityConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedStringEmptyToVisibilityConverter.cs index de0a2ed85..0c8658cc1 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedStringEmptyToVisibilityConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/InvertedStringEmptyToVisibilityConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/IsNotTypeToVisibilityConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/IsNotTypeToVisibilityConverter.cs index 4d28fbeb7..f4b3f8751 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/IsNotTypeToVisibilityConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/IsNotTypeToVisibilityConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/IsTypeToVisibilityConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/IsTypeToVisibilityConverter.cs index 8177096cc..47fa662f3 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/IsTypeToVisibilityConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/IsTypeToVisibilityConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/ObjectNullToVisibilityConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/ObjectNullToVisibilityConverter.cs index b4c88fa1b..900c50f16 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/ObjectNullToVisibilityConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/ObjectNullToVisibilityConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/StringEmptyToVisibilityConverter.cs b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/StringEmptyToVisibilityConverter.cs index 6f1be593c..29ba8b84b 100644 --- a/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/StringEmptyToVisibilityConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/Converters/Visibility/StringEmptyToVisibilityConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/Downloader/Downloader.xaml.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/Downloader/Downloader.xaml.cs index 797896078..d270f5ee8 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/Downloader/Downloader.xaml.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/Downloader/Downloader.xaml.cs @@ -1,4 +1,5 @@ -using System.Windows; +#nullable disable +using System.Windows; using Microsoft.WindowsAPICodePack.Taskbar; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/Downloader/DownloaderResult.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/Downloader/DownloaderResult.cs index 4ce42125d..3adac399e 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/Downloader/DownloaderResult.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/Downloader/DownloaderResult.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; public class DownloaderResult : UserInputResult { diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/Downloader/DownloaderViewModel.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/Downloader/DownloaderViewModel.cs index 6bb183806..81cc0eef1 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/Downloader/DownloaderViewModel.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/Downloader/DownloaderViewModel.cs @@ -1,4 +1,5 @@ -using System.IO; +#nullable disable +using System.IO; using System.IO.Compression; using System.Net; diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/DriveSelection/DriveSelectionDialog.xaml.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/DriveSelection/DriveSelectionDialog.xaml.cs index d1dfa0e96..a893cfe3f 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/DriveSelection/DriveSelectionDialog.xaml.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/DriveSelection/DriveSelectionDialog.xaml.cs @@ -1,4 +1,5 @@ -using System.IO; +#nullable disable +using System.IO; using System.Windows; using System.Windows.Input; diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/DriveSelection/DriveSelectionViewModel.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/DriveSelection/DriveSelectionViewModel.cs index 15152bdf5..f596bc7de 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/DriveSelection/DriveSelectionViewModel.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/DriveSelection/DriveSelectionViewModel.cs @@ -1,4 +1,5 @@ -using Microsoft.WindowsAPICodePack.Shell; +#nullable disable +using Microsoft.WindowsAPICodePack.Shell; using Nito.AsyncEx; using System.IO; using System.Windows.Input; diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/DriveSelection/DriveViewModel.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/DriveSelection/DriveViewModel.cs index ffb500006..d12458fbc 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/DriveSelection/DriveViewModel.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/DriveSelection/DriveViewModel.cs @@ -1,4 +1,5 @@ -using System.IO; +#nullable disable +using System.IO; using System.Windows.Media; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/GamesSelection/GamesSelectionResult.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/GamesSelection/GamesSelectionResult.cs index 3963d8fcd..749119579 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/GamesSelection/GamesSelectionResult.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/GamesSelection/GamesSelectionResult.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// Result for a games selection dialog diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/ItemSelection/ItemSelectionDialog.xaml.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/ItemSelection/ItemSelectionDialog.xaml.cs index 2ba9f1c15..a0e0cedbb 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/ItemSelection/ItemSelectionDialog.xaml.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/ItemSelection/ItemSelectionDialog.xaml.cs @@ -1,4 +1,5 @@ -using System.Windows; +#nullable disable +using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/JumpListEdit/JumpListEditResult.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/JumpListEdit/JumpListEditResult.cs index 49c442905..bb773b602 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/JumpListEdit/JumpListEditResult.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/JumpListEdit/JumpListEditResult.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// Result for the jump list editor diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageActionHandledEventArgs.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageActionHandledEventArgs.cs index 04794d1e7..a800abdbd 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageActionHandledEventArgs.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageActionHandledEventArgs.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// Event arguments for when a dialog message action is handled diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageActionViewModel.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageActionViewModel.cs index e7bbb8399..04a79abe5 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageActionViewModel.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageActionViewModel.cs @@ -1,4 +1,5 @@ -using System.Windows.Input; +#nullable disable +using System.Windows.Input; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageBox.xaml.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageBox.xaml.cs index 3fb052e74..d7f3e274e 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageBox.xaml.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageBox.xaml.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// A dialog message box with standard WPF controls diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageViewModel.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageViewModel.cs index 63868c42a..5d1d792f1 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageViewModel.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageViewModel.cs @@ -1,4 +1,5 @@ -using System.Windows.Media; +#nullable disable +using System.Windows.Media; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/MessageType.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/MessageType.cs index 122748ff9..f11942891 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/MessageType.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/MessageType.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// The types of messages to display diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/StringInput/StringInputDialog.xaml.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/StringInput/StringInputDialog.xaml.cs index 6ebc767df..f35073c5a 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/StringInput/StringInputDialog.xaml.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/StringInput/StringInputDialog.xaml.cs @@ -1,4 +1,5 @@ -using System.Windows; +#nullable disable +using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/StringInput/StringInputResult.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/StringInput/StringInputResult.cs index a873b7c0d..aebe325f0 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/StringInput/StringInputResult.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/StringInput/StringInputResult.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// Result for a string input dialog diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/StringInput/StringInputViewModel.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/StringInput/StringInputViewModel.cs index e35a69a33..e51775a5a 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/StringInput/StringInputViewModel.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/StringInput/StringInputViewModel.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// View model for a string input dialog diff --git a/src/RayCarrot.RCP.Metro/UI/Taskbar/TaskbarManagerExtensions.cs b/src/RayCarrot.RCP.Metro/UI/Taskbar/TaskbarManagerExtensions.cs index f042a6efb..ede37797c 100644 --- a/src/RayCarrot.RCP.Metro/UI/Taskbar/TaskbarManagerExtensions.cs +++ b/src/RayCarrot.RCP.Metro/UI/Taskbar/TaskbarManagerExtensions.cs @@ -1,4 +1,5 @@ -using Microsoft.WindowsAPICodePack.Taskbar; +#nullable disable +using Microsoft.WindowsAPICodePack.Taskbar; using System.Windows; using System.Windows.Interop; diff --git a/src/RayCarrot.RCP.Metro/UI/UserControls/AdminButton.xaml.cs b/src/RayCarrot.RCP.Metro/UI/UserControls/AdminButton.xaml.cs index 280a9a3de..8e355a38e 100644 --- a/src/RayCarrot.RCP.Metro/UI/UserControls/AdminButton.xaml.cs +++ b/src/RayCarrot.RCP.Metro/UI/UserControls/AdminButton.xaml.cs @@ -1,4 +1,5 @@ -using System.Windows.Controls; +#nullable disable +using System.Windows.Controls; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/ButtonMapper.xaml.cs b/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/ButtonMapper.xaml.cs index 1db699f87..3e78eb2e3 100644 --- a/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/ButtonMapper.xaml.cs +++ b/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/ButtonMapper.xaml.cs @@ -1,4 +1,5 @@ -using System.Windows; +#nullable disable +using System.Windows; using System.Windows.Controls; using System.Windows.Input; using MahApps.Metro.Controls; diff --git a/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/ButtonMapperHotKeyValidationRule.cs b/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/ButtonMapperHotKeyValidationRule.cs index f0a37f533..9b37cc679 100644 --- a/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/ButtonMapperHotKeyValidationRule.cs +++ b/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/ButtonMapperHotKeyValidationRule.cs @@ -1,4 +1,5 @@ -using MahApps.Metro.Controls; +#nullable disable +using MahApps.Metro.Controls; using System.Globalization; using System.Windows.Controls; using System.Windows.Input; diff --git a/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/ButtonMapperKeyItemViewModel.cs b/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/ButtonMapperKeyItemViewModel.cs index 7c2ab4971..2f86510ed 100644 --- a/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/ButtonMapperKeyItemViewModel.cs +++ b/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/ButtonMapperKeyItemViewModel.cs @@ -1,4 +1,5 @@ -using System.Windows.Input; +#nullable disable +using System.Windows.Input; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/KeyToHotKeyConverter.cs b/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/KeyToHotKeyConverter.cs index 1527e7d95..d7dd22736 100644 --- a/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/KeyToHotKeyConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/KeyToHotKeyConverter.cs @@ -1,4 +1,5 @@ -using MahApps.Metro.Controls; +#nullable disable +using MahApps.Metro.Controls; using System.Globalization; using System.Windows.Input; diff --git a/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/KeyToStringConverter.cs b/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/KeyToStringConverter.cs index 26b8dc82e..ee6c90908 100644 --- a/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/KeyToStringConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/UserControls/ButtonMapper/KeyToStringConverter.cs @@ -1,4 +1,5 @@ -using MahApps.Metro.Controls; +#nullable disable +using MahApps.Metro.Controls; using System.Globalization; using System.Windows.Input; diff --git a/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeSelection.xaml.cs b/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeSelection.xaml.cs index 1367c6b43..4b51fb69a 100644 --- a/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeSelection.xaml.cs +++ b/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeSelection.xaml.cs @@ -1,4 +1,5 @@ -using System.Windows; +#nullable disable +using System.Windows; using System.Windows.Controls; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeSelectionViewModel.cs b/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeSelectionViewModel.cs index bf74dd0a9..f3df790b1 100644 --- a/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeSelectionViewModel.cs +++ b/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeSelectionViewModel.cs @@ -1,4 +1,5 @@ -using PropertyChanged; +#nullable disable +using PropertyChanged; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeToStringConverter.cs b/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeToStringConverter.cs index ce2c8dbce..a2b2ac039 100644 --- a/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeToStringConverter.cs +++ b/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeToStringConverter.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeValidationRule.cs b/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeValidationRule.cs index 922659bca..6b1f14500 100644 --- a/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeValidationRule.cs +++ b/src/RayCarrot.RCP.Metro/UI/UserControls/GraphicsModeSelection/GraphicsModeValidationRule.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; using System.Windows.Controls; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/UserControls/InfoIcon.xaml.cs b/src/RayCarrot.RCP.Metro/UI/UserControls/InfoIcon.xaml.cs index b92c30019..8e2f5a4dd 100644 --- a/src/RayCarrot.RCP.Metro/UI/UserControls/InfoIcon.xaml.cs +++ b/src/RayCarrot.RCP.Metro/UI/UserControls/InfoIcon.xaml.cs @@ -1,4 +1,5 @@ -using System.Windows; +#nullable disable +using System.Windows; using System.Windows.Controls; using MahApps.Metro.IconPacks; diff --git a/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/DirectoryExistsAndNotEmptyValidationRule.cs b/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/DirectoryExistsAndNotEmptyValidationRule.cs index b3ec66ec4..24b87b602 100644 --- a/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/DirectoryExistsAndNotEmptyValidationRule.cs +++ b/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/DirectoryExistsAndNotEmptyValidationRule.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; using System.IO; using System.Windows.Controls; diff --git a/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/DirectoryExistsValidationRule.cs b/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/DirectoryExistsValidationRule.cs index e883cf27c..7dc65a1f0 100644 --- a/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/DirectoryExistsValidationRule.cs +++ b/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/DirectoryExistsValidationRule.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; using System.IO; using System.Windows.Controls; diff --git a/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/FileExistsAndNotEmptyValidationRule.cs b/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/FileExistsAndNotEmptyValidationRule.cs index 7b6f1594c..a7e1cf82b 100644 --- a/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/FileExistsAndNotEmptyValidationRule.cs +++ b/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/FileExistsAndNotEmptyValidationRule.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; using System.IO; using System.Windows.Controls; diff --git a/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/FileExistsValidationRule.cs b/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/FileExistsValidationRule.cs index 285cd71a7..807cb445a 100644 --- a/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/FileExistsValidationRule.cs +++ b/src/RayCarrot.RCP.Metro/UI/ValidationRules/Files and Directories/FileExistsValidationRule.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; using System.IO; using System.Windows.Controls; diff --git a/src/RayCarrot.RCP.Metro/UI/ValidationRules/NotEmptyValidationRule.cs b/src/RayCarrot.RCP.Metro/UI/ValidationRules/NotEmptyValidationRule.cs index 7ba6aba6a..c4b1fc8df 100644 --- a/src/RayCarrot.RCP.Metro/UI/ValidationRules/NotEmptyValidationRule.cs +++ b/src/RayCarrot.RCP.Metro/UI/ValidationRules/NotEmptyValidationRule.cs @@ -1,4 +1,5 @@ -using System.Globalization; +#nullable disable +using System.Globalization; using System.Windows.Controls; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Windows/Base/BaseIconWindow.cs b/src/RayCarrot.RCP.Metro/UI/Windows/Base/BaseIconWindow.cs index 020a67cd0..17d38113c 100644 --- a/src/RayCarrot.RCP.Metro/UI/Windows/Base/BaseIconWindow.cs +++ b/src/RayCarrot.RCP.Metro/UI/Windows/Base/BaseIconWindow.cs @@ -1,4 +1,5 @@ -using System.Windows; +#nullable disable +using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Windows/Base/BaseWindow.cs b/src/RayCarrot.RCP.Metro/UI/Windows/Base/BaseWindow.cs index bcb3f8597..28dc06396 100644 --- a/src/RayCarrot.RCP.Metro/UI/Windows/Base/BaseWindow.cs +++ b/src/RayCarrot.RCP.Metro/UI/Windows/Base/BaseWindow.cs @@ -1,4 +1,5 @@ -using MahApps.Metro.Controls; +#nullable disable +using MahApps.Metro.Controls; using System.Windows; using System.Windows.Controls; using System.Windows.Input; diff --git a/src/RayCarrot.RCP.Metro/UI/Windows/FirstLaunchInfoDialog.xaml.cs b/src/RayCarrot.RCP.Metro/UI/Windows/FirstLaunchInfoDialog.xaml.cs index bb416f32a..9b6b191c7 100644 --- a/src/RayCarrot.RCP.Metro/UI/Windows/FirstLaunchInfoDialog.xaml.cs +++ b/src/RayCarrot.RCP.Metro/UI/Windows/FirstLaunchInfoDialog.xaml.cs @@ -1,4 +1,5 @@ -using System.Windows; +#nullable disable +using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Windows/LicenseDialog.xaml.cs b/src/RayCarrot.RCP.Metro/UI/Windows/LicenseDialog.xaml.cs index 44fe6bf8c..68e236919 100644 --- a/src/RayCarrot.RCP.Metro/UI/Windows/LicenseDialog.xaml.cs +++ b/src/RayCarrot.RCP.Metro/UI/Windows/LicenseDialog.xaml.cs @@ -1,4 +1,5 @@ -using System.Windows; +#nullable disable +using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Windows/LogViewer/LogItemViewModel.cs b/src/RayCarrot.RCP.Metro/UI/Windows/LogViewer/LogItemViewModel.cs index 737c163a6..c1388d4d0 100644 --- a/src/RayCarrot.RCP.Metro/UI/Windows/LogViewer/LogItemViewModel.cs +++ b/src/RayCarrot.RCP.Metro/UI/Windows/LogViewer/LogItemViewModel.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; public class LogItemViewModel : BaseRCPViewModel { diff --git a/src/RayCarrot.RCP.Metro/UI/Windows/LogViewer/LogViewer.xaml.cs b/src/RayCarrot.RCP.Metro/UI/Windows/LogViewer/LogViewer.xaml.cs index 495c7c9cc..7efc33f72 100644 --- a/src/RayCarrot.RCP.Metro/UI/Windows/LogViewer/LogViewer.xaml.cs +++ b/src/RayCarrot.RCP.Metro/UI/Windows/LogViewer/LogViewer.xaml.cs @@ -1,4 +1,5 @@ -using System.Collections.Specialized; +#nullable disable +using System.Collections.Specialized; using System.ComponentModel; using System.Windows; diff --git a/src/RayCarrot.RCP.Metro/UI/Windows/LogViewer/LogViewerViewModel.cs b/src/RayCarrot.RCP.Metro/UI/Windows/LogViewer/LogViewerViewModel.cs index 20e33b42a..4624245e2 100644 --- a/src/RayCarrot.RCP.Metro/UI/Windows/LogViewer/LogViewerViewModel.cs +++ b/src/RayCarrot.RCP.Metro/UI/Windows/LogViewer/LogViewerViewModel.cs @@ -1,4 +1,5 @@ -using System.Windows.Input; +#nullable disable +using System.Windows.Input; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Updater/IUpdaterManager.cs b/src/RayCarrot.RCP.Metro/Updater/IUpdaterManager.cs index e20f10ab2..a0c481621 100644 --- a/src/RayCarrot.RCP.Metro/Updater/IUpdaterManager.cs +++ b/src/RayCarrot.RCP.Metro/Updater/IUpdaterManager.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// Defines a generic update manager diff --git a/src/RayCarrot.RCP.Metro/Updater/RCPUpdaterManager.cs b/src/RayCarrot.RCP.Metro/Updater/RCPUpdaterManager.cs index c7ac30735..718c2030f 100644 --- a/src/RayCarrot.RCP.Metro/Updater/RCPUpdaterManager.cs +++ b/src/RayCarrot.RCP.Metro/Updater/RCPUpdaterManager.cs @@ -1,4 +1,5 @@ -using Newtonsoft.Json.Linq; +#nullable disable +using Newtonsoft.Json.Linq; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Updater/UpdaterCheckResult.cs b/src/RayCarrot.RCP.Metro/Updater/UpdaterCheckResult.cs index 79412ead5..6658f6e60 100644 --- a/src/RayCarrot.RCP.Metro/Updater/UpdaterCheckResult.cs +++ b/src/RayCarrot.RCP.Metro/Updater/UpdaterCheckResult.cs @@ -1,4 +1,5 @@ -namespace RayCarrot.RCP.Metro; +#nullable disable +namespace RayCarrot.RCP.Metro; /// /// The result for an updater check From 973003abab44c0cbe5a7f0190b267cf2cfde3120 Mon Sep 17 00:00:00 2001 From: Rorias Date: Sat, 20 Sep 2025 13:28:33 +0200 Subject: [PATCH 3/7] Removed some nullable disables - Implemented nullables where applicable --- .../Extensions/EnumerableExtensions.cs | 5 ++- .../Services/AppUI/AppUIManager.cs | 36 +++++++++---------- .../Directory/DirectoryBrowserViewModel.cs | 3 +- .../WindowDialog/Control/IWindowControl.cs | 3 +- src/RayCarrot.RCP.Metro/UI/BindingProxy.cs | 3 +- .../Dialogs/Message/DialogMessageViewModel.cs | 27 ++++++++++---- .../UI/Dialogs/Message/MessageType.cs | 3 +- 7 files changed, 43 insertions(+), 37 deletions(-) diff --git a/src/RayCarrot.RCP.Metro/Helpers/Extensions/EnumerableExtensions.cs b/src/RayCarrot.RCP.Metro/Helpers/Extensions/EnumerableExtensions.cs index cf940ccbd..3e1e39eeb 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/Extensions/EnumerableExtensions.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/Extensions/EnumerableExtensions.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// Extension methods for an @@ -116,7 +115,7 @@ public static int FindItemIndex(this IList list, Predicate match) /// Disposes all items in the collection /// /// The collection of disposable items - public static void DisposeAll(this IEnumerable disposables) + public static void DisposeAll(this IEnumerable? disposables) { disposables?.ForEach(x => x?.Dispose()); } diff --git a/src/RayCarrot.RCP.Metro/Services/AppUI/AppUIManager.cs b/src/RayCarrot.RCP.Metro/Services/AppUI/AppUIManager.cs index 497a1dbc7..6f60a70bc 100644 --- a/src/RayCarrot.RCP.Metro/Services/AppUI/AppUIManager.cs +++ b/src/RayCarrot.RCP.Metro/Services/AppUI/AppUIManager.cs @@ -5,6 +5,7 @@ using System.Windows; using System.Windows.Media; using System.Windows.Threading; + using RayCarrot.RCP.Metro.Archive; using RayCarrot.RCP.Metro.Games.Clients; using RayCarrot.RCP.Metro.Games.Components; @@ -79,7 +80,7 @@ private async Task ShowDialogAsync(Func createWindowFunc, + Func createWindowFunc, ShowWindowFlags flags = ShowWindowFlags.None, string[] typeGroupNames = null, string[] globalGroupNames = null) @@ -119,7 +120,7 @@ public async Task SelectItemAsync(ItemSelectionDialog public Task GetProgramAsync(ProgramSelectionViewModel programSelectionViewModel) => ShowDialogAsync(() => new ProgramSelectionDialog(programSelectionViewModel)); - public Task SelectGamesAsync(GamesSelectionViewModel gamesSelectionViewModel) => + public Task SelectGamesAsync(GamesSelectionViewModel gamesSelectionViewModel) => ShowDialogAsync(() => new GamesSelectionDialog(gamesSelectionViewModel)); /// @@ -131,7 +132,7 @@ public Task SelectGamesAsync(GamesSelectionViewModel games public Task DownloadAsync(DownloaderViewModel viewModel) => ShowDialogAsync(() => new Downloader(viewModel)); - public Task InstallGameAsync(GameDescriptor gameDescriptor, GameInstallerInfo info) => + public Task InstallGameAsync(GameDescriptor gameDescriptor, GameInstallerInfo info) => ShowDialogAsync(() => new GameInstallerDialog(gameDescriptor, info)); /// @@ -213,14 +214,11 @@ static string GetImgSource(MessageType mt) return await Application.Current.Dispatcher.Invoke(async () => { // Create the view model - var vm = new DialogMessageViewModel() + var vm = new DialogMessageViewModel(message, messageType, actions, + new UserInputResult(), + (ImageSource)new ImageSourceConverter().ConvertFromString(GetImgSource(messageType))) { - MessageText = message, Title = headerMessage, - MessageType = messageType, - DialogImageSource = (ImageSource)new ImageSourceConverter().ConvertFromString(GetImgSource(messageType)), - DialogActions = actions, - DefaultActionResult = new UserInputResult(), }; // Create the message box @@ -271,7 +269,7 @@ await ShowWindowAsync( public async Task ShowGameClientGameOptionsAsync(GameInstallation gameInstallation) { await ShowWindowAsync( - () => new GameSettingsDialog(gameInstallation.GetRequiredComponent().CreateObject()), + () => new GameSettingsDialog(gameInstallation.GetRequiredComponent().CreateObject()), // Only allow one settings window per installation typeGroupNames: new[] { gameInstallation.InstallationId }); } @@ -351,7 +349,7 @@ public async Task ShowModLoaderAsync(GameInstallation gameInstallation, long gam if (validFiles.Count > 1) { ItemSelectionDialogResult result = await Services.UI.SelectItemAsync(new ItemSelectionDialogViewModel(validFiles. - Select(x => x.Description.IsNullOrWhiteSpace() + Select(x => x.Description.IsNullOrWhiteSpace() ? x.File : $"{x.File}{Environment.NewLine}{x.Description}"). ToArray(), @@ -453,9 +451,9 @@ public async Task ShowModLoaderAsync(GameInstallation? gameInstallation, params await Services.MessageUI.DisplayExceptionMessageAsync(ex, Resources.ModLoader_ErrorOpening); - return; + return; } - + if (viewModel == null) return; @@ -469,7 +467,7 @@ public async Task ShowModLoaderAsync(GameInstallation? gameInstallation, params /// /// The game installation the mod should be created for /// The task - public async Task ShowModCreatorAsync(GameInstallation gameInstallation) => + public async Task ShowModCreatorAsync(GameInstallation gameInstallation) => await ShowWindowAsync(() => new ModCreatorDialog(new ModCreatorViewModel(gameInstallation))); /// @@ -477,7 +475,7 @@ public async Task ShowModCreatorAsync(GameInstallation gameInstallation) => /// /// The task public async Task ShowPrototypeRestorationAsync(GameInstallation gameInstallation) => - await ShowWindowAsync(() => new PrototypeRestorationDialog(new PrototypeRestorationViewModel(gameInstallation)), + await ShowWindowAsync(() => new PrototypeRestorationDialog(new PrototypeRestorationViewModel(gameInstallation)), typeGroupNames: new[] { gameInstallation.InstallationId }); /// @@ -485,28 +483,28 @@ public async Task ShowPrototypeRestorationAsync(GameInstallation gameInstallatio /// /// The task public async Task ShowRuntimeModificationsAsync(GameInstallation gameInstallation) => - await ShowWindowAsync(() => new RuntimeModificationsDialog(new RuntimeModificationsViewModel(gameInstallation, Services.MessageUI)), + await ShowWindowAsync(() => new RuntimeModificationsDialog(new RuntimeModificationsViewModel(gameInstallation, Services.MessageUI)), typeGroupNames: new[] { gameInstallation.InstallationId }); /// /// Shows a new instance of the add games dialog /// /// The task - public async Task ShowAddGamesAsync() => + public async Task ShowAddGamesAsync() => await ShowWindowAsync(() => new AddGamesDialog(), ShowWindowFlags.DuplicateTypesNotAllowed); /// /// Shows a new instance of the game clients setup dialog /// /// The task - public async Task ShowGameClientsSetupAsync() => + public async Task ShowGameClientsSetupAsync() => await ShowWindowAsync(() => new GameClientsSetupDialog(), ShowWindowFlags.DuplicateTypesNotAllowed); /// /// Shows a new instance of the anniversary update dialog /// /// The task - public async Task ShowAnniversaryUpdateAsync() => + public async Task ShowAnniversaryUpdateAsync() => await ShowWindowAsync(() => new AnniversaryUpdateDialog(), ShowWindowFlags.Modal); #endregion diff --git a/src/RayCarrot.RCP.Metro/Services/Browse/Directory/DirectoryBrowserViewModel.cs b/src/RayCarrot.RCP.Metro/Services/Browse/Directory/DirectoryBrowserViewModel.cs index 6a2f9f3f5..dca5896a8 100644 --- a/src/RayCarrot.RCP.Metro/Services/Browse/Directory/DirectoryBrowserViewModel.cs +++ b/src/RayCarrot.RCP.Metro/Services/Browse/Directory/DirectoryBrowserViewModel.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// A model to use when browsing for a directory diff --git a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/IWindowControl.cs b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/IWindowControl.cs index 23d09f361..099baf635 100644 --- a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/IWindowControl.cs +++ b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/IWindowControl.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// An abstract window control diff --git a/src/RayCarrot.RCP.Metro/UI/BindingProxy.cs b/src/RayCarrot.RCP.Metro/UI/BindingProxy.cs index 5c7b6a7c7..12700777e 100644 --- a/src/RayCarrot.RCP.Metro/UI/BindingProxy.cs +++ b/src/RayCarrot.RCP.Metro/UI/BindingProxy.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Windows; +using System.Windows; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageViewModel.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageViewModel.cs index 5d1d792f1..ba94539ca 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageViewModel.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/DialogMessageViewModel.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Windows.Media; +using System.Windows.Media; namespace RayCarrot.RCP.Metro; @@ -8,28 +7,42 @@ namespace RayCarrot.RCP.Metro; /// public class DialogMessageViewModel : UserInputViewModel { + public DialogMessageViewModel( + string messageText, + MessageType messageType, + IList dialogActions, + UserInputResult defaultActionResult, + ImageSource dialogImageSource) + { + MessageText = messageText; + MessageType = messageType; + DialogActions = dialogActions; + DefaultActionResult = defaultActionResult; + DialogImageSource = dialogImageSource; + } + /// /// The message text /// - public string MessageText { get; set; } + public string MessageText { get; } /// /// The message type /// - public MessageType MessageType { get; set; } + public MessageType MessageType { get; } /// /// The dialog actions /// - public IList DialogActions { get; set; } + public IList DialogActions { get; } /// /// The default action result /// - public UserInputResult DefaultActionResult { get; set; } + public UserInputResult DefaultActionResult { get; } /// /// The dialog image source /// - public ImageSource DialogImageSource { get; set; } + public ImageSource DialogImageSource { get; } } \ No newline at end of file diff --git a/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/MessageType.cs b/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/MessageType.cs index f11942891..122748ff9 100644 --- a/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/MessageType.cs +++ b/src/RayCarrot.RCP.Metro/UI/Dialogs/Message/MessageType.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// The types of messages to display From 55f9984d6916b0ee96ce5877080405e7ad851bee Mon Sep 17 00:00:00 2001 From: Rorias Date: Sat, 20 Sep 2025 13:37:43 +0200 Subject: [PATCH 4/7] Removed unnecessary nullable disable --- .../Localization/LocString/ConstLocString.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RayCarrot.RCP.Metro/Localization/LocString/ConstLocString.cs b/src/RayCarrot.RCP.Metro/Localization/LocString/ConstLocString.cs index b343fcea6..73bf6d018 100644 --- a/src/RayCarrot.RCP.Metro/Localization/LocString/ConstLocString.cs +++ b/src/RayCarrot.RCP.Metro/Localization/LocString/ConstLocString.cs @@ -1,4 +1,4 @@ -#nullable disable +//#nullable disable namespace RayCarrot.RCP.Metro; public class ConstLocString : LocalizedString From d51461704b7b67823ada083c9aa123815e9f4dda Mon Sep 17 00:00:00 2001 From: Rorias Date: Sat, 20 Sep 2025 20:20:43 +0200 Subject: [PATCH 5/7] Another few nullable disables removed --- .../AppData/AppUserData.Aliases.v14.0.0.cs | 3 +-- .../IO/FileSystemPath/FileSystemPathExtensions.cs | 3 +-- .../Localization/LocString/ConstLocString.cs | 3 +-- .../Localization/LocString/GeneratedLocString.cs | 3 +-- .../Localization/LocString/LocalizedString.cs | 5 ++--- .../Services/Browse/SaveFile/SaveFileViewModel.cs | 5 ++--- .../Services/WindowDialog/Control/WindowContentControl.cs | 4 ++-- src/RayCarrot.RCP.Metro/UI/BindingProxy.cs | 2 +- 8 files changed, 11 insertions(+), 17 deletions(-) diff --git a/src/RayCarrot.RCP.Metro/AppData/AppUserData.Aliases.v14.0.0.cs b/src/RayCarrot.RCP.Metro/AppData/AppUserData.Aliases.v14.0.0.cs index b9ec313a0..4e7ccb81e 100644 --- a/src/RayCarrot.RCP.Metro/AppData/AppUserData.Aliases.v14.0.0.cs +++ b/src/RayCarrot.RCP.Metro/AppData/AppUserData.Aliases.v14.0.0.cs @@ -1,5 +1,4 @@ -#nullable disable -using Newtonsoft.Json; +using Newtonsoft.Json; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/IO/FileSystemPath/FileSystemPathExtensions.cs b/src/RayCarrot.RCP.Metro/IO/FileSystemPath/FileSystemPathExtensions.cs index d65c54c8f..7c5d779d6 100644 --- a/src/RayCarrot.RCP.Metro/IO/FileSystemPath/FileSystemPathExtensions.cs +++ b/src/RayCarrot.RCP.Metro/IO/FileSystemPath/FileSystemPathExtensions.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.IO; +using System.IO; using System.Security.Cryptography; namespace RayCarrot.RCP.Metro; diff --git a/src/RayCarrot.RCP.Metro/Localization/LocString/ConstLocString.cs b/src/RayCarrot.RCP.Metro/Localization/LocString/ConstLocString.cs index 73bf6d018..ad96236de 100644 --- a/src/RayCarrot.RCP.Metro/Localization/LocString/ConstLocString.cs +++ b/src/RayCarrot.RCP.Metro/Localization/LocString/ConstLocString.cs @@ -1,5 +1,4 @@ -//#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; public class ConstLocString : LocalizedString { diff --git a/src/RayCarrot.RCP.Metro/Localization/LocString/GeneratedLocString.cs b/src/RayCarrot.RCP.Metro/Localization/LocString/GeneratedLocString.cs index a8647671a..9faf2ac48 100644 --- a/src/RayCarrot.RCP.Metro/Localization/LocString/GeneratedLocString.cs +++ b/src/RayCarrot.RCP.Metro/Localization/LocString/GeneratedLocString.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// A localized string which gets generated from a func when the culture changes diff --git a/src/RayCarrot.RCP.Metro/Localization/LocString/LocalizedString.cs b/src/RayCarrot.RCP.Metro/Localization/LocString/LocalizedString.cs index 29c14989d..5e9ad5f32 100644 --- a/src/RayCarrot.RCP.Metro/Localization/LocString/LocalizedString.cs +++ b/src/RayCarrot.RCP.Metro/Localization/LocString/LocalizedString.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Globalization; +using System.Globalization; namespace RayCarrot.RCP.Metro; @@ -24,7 +23,7 @@ protected LocalizedString(bool refreshOnCultureChanged = true) /// /// The current string value /// - public string Value { get; protected set; } + public string Value { get; protected set; } = null!; #endregion diff --git a/src/RayCarrot.RCP.Metro/Services/Browse/SaveFile/SaveFileViewModel.cs b/src/RayCarrot.RCP.Metro/Services/Browse/SaveFile/SaveFileViewModel.cs index e77c42182..2e2294141 100644 --- a/src/RayCarrot.RCP.Metro/Services/Browse/SaveFile/SaveFileViewModel.cs +++ b/src/RayCarrot.RCP.Metro/Services/Browse/SaveFile/SaveFileViewModel.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// The model to use when saving a file @@ -9,5 +8,5 @@ public class SaveFileViewModel : BaseBrowseViewModel /// /// The available extensions to save the file to /// - public string Extensions { get; set; } + public string? Extensions { get; set; } } \ No newline at end of file diff --git a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/WindowContentControl.cs b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/WindowContentControl.cs index 7dc0ad92a..a867a3d9c 100644 --- a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/WindowContentControl.cs +++ b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/WindowContentControl.cs @@ -12,7 +12,7 @@ protected WindowContentControl() Loaded += WindowContentControl_Loaded; } - private WindowInstance _windowInstance; + private WindowInstance _windowInstance = null!; private bool _isClosing; private bool _forceClose; @@ -74,7 +74,7 @@ private async void WindowInstance_WindowClosing(object sender, CancelEventArgs e try { // Check if the window can be closed - var canClose = await ClosingAsync(); + bool canClose = await ClosingAsync(); // If we can close we flag to force close and then close the window again if (canClose) diff --git a/src/RayCarrot.RCP.Metro/UI/BindingProxy.cs b/src/RayCarrot.RCP.Metro/UI/BindingProxy.cs index 12700777e..2ac34eb06 100644 --- a/src/RayCarrot.RCP.Metro/UI/BindingProxy.cs +++ b/src/RayCarrot.RCP.Metro/UI/BindingProxy.cs @@ -15,7 +15,7 @@ protected override Freezable CreateInstanceCore() /// /// The data context to bind to /// - public object Data + public object? Data { get => GetValue(DataProperty); set => SetValue(DataProperty, value); From d6896b36fa5779cd35abdf0bbeb510616b997282 Mon Sep 17 00:00:00 2001 From: Rorias Date: Sat, 20 Sep 2025 21:55:32 +0200 Subject: [PATCH 6/7] Update - Reverted = null!; - Added null check to GetFileSystemInfo and all resulting changes --- .../IO/FileSystemPath/FileSystemPathConverter.cs | 5 ++--- .../IO/FileSystemPath/FileSystemPathExtensions.cs | 2 +- .../Pages/Progression/GameViewModel.cs | 8 ++++---- .../Services/WindowDialog/Control/WindowContentControl.cs | 2 +- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/RayCarrot.RCP.Metro/IO/FileSystemPath/FileSystemPathConverter.cs b/src/RayCarrot.RCP.Metro/IO/FileSystemPath/FileSystemPathConverter.cs index ec81af004..c007838e3 100644 --- a/src/RayCarrot.RCP.Metro/IO/FileSystemPath/FileSystemPathConverter.cs +++ b/src/RayCarrot.RCP.Metro/IO/FileSystemPath/FileSystemPathConverter.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.ComponentModel; +using System.ComponentModel; using System.Globalization; using System.IO; @@ -70,7 +69,7 @@ public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo c /// An that represents the converted value. /// The destinationType parameter is null. /// The conversion cannot be performed. - public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) + public override object? ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType) { if (!(value is FileSystemPath path)) return base.ConvertTo(context, culture, value, destinationType); diff --git a/src/RayCarrot.RCP.Metro/IO/FileSystemPath/FileSystemPathExtensions.cs b/src/RayCarrot.RCP.Metro/IO/FileSystemPath/FileSystemPathExtensions.cs index 7c5d779d6..e10057f84 100644 --- a/src/RayCarrot.RCP.Metro/IO/FileSystemPath/FileSystemPathExtensions.cs +++ b/src/RayCarrot.RCP.Metro/IO/FileSystemPath/FileSystemPathExtensions.cs @@ -20,7 +20,7 @@ public static class FileSystemPathExtensions /// The specified path, file name, or both exceed the system-defined maximum length. /// For example, on Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 characters. /// The path contains a colon (:) in the middle of the string - public static FileSystemInfo GetFileSystemInfo(this FileSystemPath path) + public static FileSystemInfo? GetFileSystemInfo(this FileSystemPath path) { switch (path.FileSystemType) { diff --git a/src/RayCarrot.RCP.Metro/Pages/Progression/GameViewModel.cs b/src/RayCarrot.RCP.Metro/Pages/Progression/GameViewModel.cs index 7e89b2ce3..98d1b32f3 100644 --- a/src/RayCarrot.RCP.Metro/Pages/Progression/GameViewModel.cs +++ b/src/RayCarrot.RCP.Metro/Pages/Progression/GameViewModel.cs @@ -151,12 +151,12 @@ private async Task LoadBackupInfoAsync(GameBackups_ExistingBackup? backup) text: backup.IsCompressed.ToString(), minUserLevel: UserLevel.Debug)); - DateTime lastWriteTime = backup.Path.GetFileSystemInfo().LastWriteTime; + DateTime backupDate = backup.Path.GetFileSystemInfo()?.LastWriteTime ?? throw new Exception("Can't get backup info"); // Get the backup date BackupInfoItems.Add(new DuoGridItemViewModel( - header: new ResourceLocString(nameof(Resources.Backup_LastBackupDate)), - text: new GeneratedLocString(() => lastWriteTime.ToShortDateString()))); + header: new ResourceLocString(nameof(Resources.Backup_LastBackupDate)), + text: new GeneratedLocString(() => backupDate.ToShortDateString()))); // Get the backup size BackupInfoItems.Add(new DuoGridItemViewModel( @@ -242,7 +242,7 @@ private async Task GetBackupStatusAsync(GameBackups_ExistingBackup if (backup.IsCompressed) compressedBackup = new ZipArchive(File.OpenRead(backup.Path)); - DateTime backupDate = backup.Path.GetFileSystemInfo().LastWriteTime; + DateTime backupDate = backup.Path.GetFileSystemInfo()?.LastWriteTime ?? throw new Exception("Can't get backup info"); BackupSearchPattern[] backupDirs = BackupInfo.BackupDirectories!; // Get the current progress files diff --git a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/WindowContentControl.cs b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/WindowContentControl.cs index a867a3d9c..b79406503 100644 --- a/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/WindowContentControl.cs +++ b/src/RayCarrot.RCP.Metro/Services/WindowDialog/Control/WindowContentControl.cs @@ -12,7 +12,7 @@ protected WindowContentControl() Loaded += WindowContentControl_Loaded; } - private WindowInstance _windowInstance = null!; + private WindowInstance _windowInstance; private bool _isClosing; private bool _forceClose; From 2bb5e5a2b71899f30649bbf2ae00939da2102746 Mon Sep 17 00:00:00 2001 From: Rorias Date: Mon, 22 Sep 2025 20:13:09 +0200 Subject: [PATCH 7/7] Update - Removed unused #nullable disables - Replaced direct bool convert with null checked convert - Changed ItemsOperationProgress to be immutable since it's only created in one place and all its members are only got, not set --- .../Helpers/Extensions/EnumExtensions.cs | 5 +--- .../Helpers/Extensions/TaskExtensions.cs | 3 +-- .../Helpers/Extensions/VisualExtensions.cs | 9 ++++---- .../Helpers/Extensions/WindowExtensions.cs | 10 +++++--- .../Helpers/OperationStatus/IStatusUpdated.cs | 3 +-- .../OperationStatus/ItemsOperationProgress.cs | 23 ++++++++++++++----- .../Installer/GameInstaller.cs | 21 ++++++----------- 7 files changed, 39 insertions(+), 35 deletions(-) diff --git a/src/RayCarrot.RCP.Metro/Helpers/Extensions/EnumExtensions.cs b/src/RayCarrot.RCP.Metro/Helpers/Extensions/EnumExtensions.cs index e5dc64975..c45f92108 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/Extensions/EnumExtensions.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/Extensions/EnumExtensions.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Reflection; +using System.Reflection; namespace RayCarrot.RCP.Metro; @@ -91,8 +90,6 @@ public static T[] GetValues(this T input) return EnumHelpers.GetValues(); } -#nullable enable - /// /// Gets the first attribute of specified type for the enum value /// diff --git a/src/RayCarrot.RCP.Metro/Helpers/Extensions/TaskExtensions.cs b/src/RayCarrot.RCP.Metro/Helpers/Extensions/TaskExtensions.cs index 40dbb9853..5e9c1f527 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/Extensions/TaskExtensions.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/Extensions/TaskExtensions.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; public static class TaskExtensions { diff --git a/src/RayCarrot.RCP.Metro/Helpers/Extensions/VisualExtensions.cs b/src/RayCarrot.RCP.Metro/Helpers/Extensions/VisualExtensions.cs index 3391db4ec..11a88d203 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/Extensions/VisualExtensions.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/Extensions/VisualExtensions.cs @@ -1,4 +1,5 @@ -#nullable disable +//#nullable disable +using System.Diagnostics.CodeAnalysis; using System.Windows; using System.Windows.Media; @@ -15,7 +16,7 @@ public static class VisualExtensions /// The type of element to get /// The element to get the type from /// The element - public static T GetDescendantByType(this Visual element) + public static T? GetDescendantByType(this Visual element) where T : class { return element.GetDescendantByType(typeof(T)) as T; @@ -27,7 +28,7 @@ public static T GetDescendantByType(this Visual element) /// The element to get the type from /// The type of element to get /// The element - public static object GetDescendantByType(this Visual element, Type descendantType) + public static object? GetDescendantByType(this Visual? element, Type descendantType) { if (element == null) return default; @@ -38,7 +39,7 @@ public static object GetDescendantByType(this Visual element, Type descendantTyp if (element is FrameworkElement frameworkElement) frameworkElement.ApplyTemplate(); - object foundElement = null; + object? foundElement = null; for (var i = 0; i < VisualTreeHelper.GetChildrenCount(element); i++) { diff --git a/src/RayCarrot.RCP.Metro/Helpers/Extensions/WindowExtensions.cs b/src/RayCarrot.RCP.Metro/Helpers/Extensions/WindowExtensions.cs index 92ce3d13f..8ac6e4f70 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/Extensions/WindowExtensions.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/Extensions/WindowExtensions.cs @@ -1,5 +1,4 @@ -#nullable disable -using System.Reflection; +using System.Reflection; using System.Windows; namespace RayCarrot.RCP.Metro; @@ -8,6 +7,11 @@ public static class WindowExtensions { public static bool IsModal(this Window window) { - return (bool)typeof(Window).GetField("_showingAsDialog", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(window); + FieldInfo? fieldInfo = typeof(Window).GetField("_showingAsDialog", BindingFlags.Instance | BindingFlags.NonPublic); + + if (fieldInfo == null) + throw new Exception("Unable to get field info for '_showingAsDialog'"); + + return (bool)fieldInfo.GetValue(window); } } \ No newline at end of file diff --git a/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/IStatusUpdated.cs b/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/IStatusUpdated.cs index d2528d885..ba8805061 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/IStatusUpdated.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/IStatusUpdated.cs @@ -1,5 +1,4 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// Contains information for keeping track of the status of a running operation diff --git a/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/ItemsOperationProgress.cs b/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/ItemsOperationProgress.cs index 23ef0467e..a9093dbb0 100644 --- a/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/ItemsOperationProgress.cs +++ b/src/RayCarrot.RCP.Metro/Helpers/OperationStatus/ItemsOperationProgress.cs @@ -1,29 +1,40 @@ -#nullable disable -namespace RayCarrot.RCP.Metro; +namespace RayCarrot.RCP.Metro; /// /// Contains information for an item during an ongoing operation /// public class ItemsOperationProgress { + public ItemsOperationProgress( + Progress totalProgress, + Progress itemProgress, + object currentItem, + string operationName) + { + TotalProgress = totalProgress; + ItemProgress = itemProgress; + CurrentItem = currentItem; + OperationName = operationName; + } + /// /// The total progress of the operation /// - public Progress TotalProgress { get; set; } + public Progress TotalProgress { get; } /// /// The item progress for the currently processed item in the operation /// - public Progress ItemProgress { get; set; } + public Progress ItemProgress { get; } /// /// The current item being processed in the operation /// - public object CurrentItem { get; set; } + public object CurrentItem { get; } /// /// The name of the current operation, /// usually the name of the method /// - public string OperationName { get; set; } + public string OperationName { get; } } \ No newline at end of file diff --git a/src/RayCarrot.RCP.Metro/Installer/GameInstaller.cs b/src/RayCarrot.RCP.Metro/Installer/GameInstaller.cs index 94a1fab47..ead7f4d64 100644 --- a/src/RayCarrot.RCP.Metro/Installer/GameInstaller.cs +++ b/src/RayCarrot.RCP.Metro/Installer/GameInstaller.cs @@ -111,20 +111,13 @@ protected int TotalItems /// The item progress private void OnStatusUpdated(OperationState operationState = OperationState.Running, Progress? itemProgress = null) { - OnStatusUpdated(new OperationProgressEventArgs(new ItemsOperationProgress() - { - // Set the name to the install method - OperationName = nameof(InstallAsync), - - // Set the item progress - ItemProgress = itemProgress ?? new Progress(0), - - // Set the total progress - TotalProgress = new Progress((CurrentItem * 100) + (itemProgress?.Percentage_100 ?? 0), TotalPercentage), - - // Set the current item - CurrentItem = CurrentObject - }, operationState)); + // Set the total progress, item progress, current item and name to the install method + OnStatusUpdated(new OperationProgressEventArgs(new ItemsOperationProgress( + new Progress((CurrentItem * 100) + (itemProgress?.Percentage_100 ?? 0), TotalPercentage), + itemProgress ?? new Progress(0), + CurrentObject, + nameof(InstallAsync) + ), operationState)); } #endregion