mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
[fxcop] Settings UI library (part 4) - project/namespace renames (#7403)
* Rename Interface to Interfaces in namespaces * Rename Lib to Library in namespaces * Rename project and directory and enable fxcop * Add CA2213 suppression * Minor fixes
This commit is contained in:
@@ -229,7 +229,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
|
|||||||
src\tests\win-app-driver\packages.config = src\tests\win-app-driver\packages.config
|
src\tests\win-app-driver\packages.config = src\tests\win-app-driver\packages.config
|
||||||
EndProjectSection
|
EndProjectSection
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.PowerToys.Settings.UI.Lib", "src\core\Microsoft.PowerToys.Settings.UI.Lib\Microsoft.PowerToys.Settings.UI.Lib.csproj", "{B1BCC8C6-46B5-4BFA-8F22-20F32D99EC6A}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.PowerToys.Settings.UI.Library", "src\core\Microsoft.PowerToys.Settings.UI.Library\Microsoft.PowerToys.Settings.UI.Library.csproj", "{B1BCC8C6-46B5-4BFA-8F22-20F32D99EC6A}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "interop", "src\common\interop\interop.vcxproj", "{F055103B-F80B-4D0C-BF48-057C55620033}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "interop", "src\common\interop\interop.vcxproj", "{F055103B-F80B-4D0C-BF48-057C55620033}"
|
||||||
EndProject
|
EndProject
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using ColorPicker.Helpers;
|
using ColorPicker.Helpers;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib;
|
using Microsoft.PowerToys.Settings.UI.Library;
|
||||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\src\core\Microsoft.PowerToys.Settings.UI.Lib\Microsoft.PowerToys.Settings.UI.Lib.csproj" />
|
<ProjectReference Include="..\src\core\Microsoft.PowerToys.Settings.UI.Library\Microsoft.PowerToys.Settings.UI.Library.csproj" />
|
||||||
<ProjectReference Include="..\src\modules\colorPicker\ColorPickerUI\ColorPickerUI.csproj" />
|
<ProjectReference Include="..\src\modules\colorPicker\ColorPickerUI\ColorPickerUI.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class AppSpecificKeysDataModel : KeysDataModel
|
public class AppSpecificKeysDataModel : KeysDataModel
|
||||||
{
|
{
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public abstract class BasePTModuleSettings
|
public abstract class BasePTModuleSettings
|
||||||
{
|
{
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class BoolProperty
|
public class BoolProperty
|
||||||
{
|
{
|
||||||
@@ -6,7 +6,7 @@ using System;
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class BoolPropertyJsonConverter : JsonConverter<bool>
|
public class BoolPropertyJsonConverter : JsonConverter<bool>
|
||||||
{
|
{
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public enum ColorRepresentationType
|
public enum ColorRepresentationType
|
||||||
{
|
{
|
||||||
@@ -5,9 +5,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Interface;
|
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class ColorPickerSettings : BasePTModuleSettings, ISettingsConfig
|
public class ColorPickerSettings : BasePTModuleSettings, ISettingsConfig
|
||||||
{
|
{
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||||
// See the LICENSE file in the project root for more information.
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public static class ConfigDefaults
|
public static class ConfigDefaults
|
||||||
{
|
{
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib.CustomAction
|
namespace Microsoft.PowerToys.Settings.UI.Library.CustomAction
|
||||||
{
|
{
|
||||||
public class CustomActionDataModel
|
public class CustomActionDataModel
|
||||||
{
|
{
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib.CustomAction
|
namespace Microsoft.PowerToys.Settings.UI.Library.CustomAction
|
||||||
{
|
{
|
||||||
public class CustomNamePolicy : JsonNamingPolicy
|
public class CustomNamePolicy : JsonNamingPolicy
|
||||||
{
|
{
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||||
// See the LICENSE file in the project root for more information.
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib.CustomAction
|
namespace Microsoft.PowerToys.Settings.UI.Library.CustomAction
|
||||||
{
|
{
|
||||||
public class ModuleCustomAction
|
public class ModuleCustomAction
|
||||||
{
|
{
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib.CustomAction
|
namespace Microsoft.PowerToys.Settings.UI.Library.CustomAction
|
||||||
{
|
{
|
||||||
public class SendCustomAction
|
public class SendCustomAction
|
||||||
{
|
{
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
// Represents the configuration property of the settings that store Double type.
|
// Represents the configuration property of the settings that store Double type.
|
||||||
public class DoubleProperty
|
public class DoubleProperty
|
||||||
@@ -8,7 +8,7 @@ using System.Text.Json.Serialization;
|
|||||||
using Microsoft.PowerToys.Settings.Telemetry;
|
using Microsoft.PowerToys.Settings.Telemetry;
|
||||||
using Microsoft.PowerToys.Telemetry;
|
using Microsoft.PowerToys.Telemetry;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class EnabledModules
|
public class EnabledModules
|
||||||
{
|
{
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class FZConfigProperties
|
public class FZConfigProperties
|
||||||
{
|
{
|
||||||
@@ -3,9 +3,9 @@
|
|||||||
// See the LICENSE file in the project root for more information.
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Interface;
|
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class FancyZonesSettings : BasePTModuleSettings, ISettingsConfig
|
public class FancyZonesSettings : BasePTModuleSettings, ISettingsConfig
|
||||||
{
|
{
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class FancyZonesSettingsIPCMessage
|
public class FancyZonesSettingsIPCMessage
|
||||||
{
|
{
|
||||||
@@ -6,10 +6,10 @@ using System;
|
|||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Interface;
|
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Utilities;
|
using Microsoft.PowerToys.Settings.UI.Library.Utilities;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class GeneralSettings : ISettingsConfig
|
public class GeneralSettings : ISettingsConfig
|
||||||
{
|
{
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class GeneralSettingsCustomAction
|
public class GeneralSettingsCustomAction
|
||||||
{
|
{
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class GenericProperty<T>
|
public class GenericProperty<T>
|
||||||
{
|
{
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib.Helpers
|
namespace Microsoft.PowerToys.Settings.UI.Library.Helpers
|
||||||
{
|
{
|
||||||
public class Observable : INotifyPropertyChanged
|
public class Observable : INotifyPropertyChanged
|
||||||
{
|
{
|
||||||
@@ -4,9 +4,9 @@
|
|||||||
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Utilities;
|
using Microsoft.PowerToys.Settings.UI.Library.Utilities;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class HotkeySettings
|
public class HotkeySettings
|
||||||
{
|
{
|
||||||
@@ -3,9 +3,10 @@
|
|||||||
// See the LICENSE file in the project root for more information.
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using interop;
|
using interop;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public delegate void KeyEvent(int key);
|
public delegate void KeyEvent(int key);
|
||||||
|
|
||||||
@@ -20,6 +21,7 @@ namespace Microsoft.PowerToys.Settings.UI.Lib
|
|||||||
private const int WmSysKeyDown = 0x0104;
|
private const int WmSysKeyDown = 0x0104;
|
||||||
private const int WmSysKeyUp = 0x0105;
|
private const int WmSysKeyUp = 0x0105;
|
||||||
|
|
||||||
|
[SuppressMessage("Usage", "CA2213:Disposable fields should be disposed", Justification = "This class conforms to the IDisposable pattern, and the Dispose and C++ destructor does get called when debugging. Looks like a false positive from FxCop.")]
|
||||||
private KeyboardHook _hook;
|
private KeyboardHook _hook;
|
||||||
private KeyEvent _keyDown;
|
private KeyEvent _keyDown;
|
||||||
private KeyEvent _keyUp;
|
private KeyEvent _keyUp;
|
||||||
@@ -2,9 +2,9 @@
|
|||||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||||
// See the LICENSE file in the project root for more information.
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Interface;
|
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public interface ISettingsUtils
|
public interface ISettingsUtils
|
||||||
{
|
{
|
||||||
@@ -6,7 +6,7 @@ using System.Collections.ObjectModel;
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class ImageResizerProperties
|
public class ImageResizerProperties
|
||||||
{
|
{
|
||||||
@@ -4,9 +4,9 @@
|
|||||||
|
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Interface;
|
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class ImageResizerSettings : BasePTModuleSettings, ISettingsConfig
|
public class ImageResizerSettings : BasePTModuleSettings, ISettingsConfig
|
||||||
{
|
{
|
||||||
@@ -8,7 +8,7 @@ using System.Runtime.CompilerServices;
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class ImageSize : INotifyPropertyChanged
|
public class ImageSize : INotifyPropertyChanged
|
||||||
{
|
{
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class ImagerResizerKeepDateModified
|
public class ImagerResizerKeepDateModified
|
||||||
{
|
{
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class ImageResizerCustomSizeProperty
|
public class ImageResizerCustomSizeProperty
|
||||||
{
|
{
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class ImageResizerFallbackEncoder
|
public class ImageResizerFallbackEncoder
|
||||||
{
|
{
|
||||||
@@ -6,7 +6,7 @@ using System.Collections.ObjectModel;
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class ImageResizerSizes
|
public class ImageResizerSizes
|
||||||
{
|
{
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
// Represents the configuration property of the settings that store Integer type.
|
// Represents the configuration property of the settings that store Integer type.
|
||||||
public class IntProperty
|
public class IntProperty
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||||
// See the LICENSE file in the project root for more information.
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib.Interface
|
namespace Microsoft.PowerToys.Settings.UI.Library.Interfaces
|
||||||
{
|
{
|
||||||
// Common interface to be implemented by all the objects which get and store settings properties.
|
// Common interface to be implemented by all the objects which get and store settings properties.
|
||||||
public interface ISettingsConfig
|
public interface ISettingsConfig
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||||
// See the LICENSE file in the project root for more information.
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib.Interface
|
namespace Microsoft.PowerToys.Settings.UI.Library.Interfaces
|
||||||
{
|
{
|
||||||
public interface ISettingsRepository<T>
|
public interface ISettingsRepository<T>
|
||||||
{
|
{
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class KeyboardKeysProperty
|
public class KeyboardKeysProperty
|
||||||
{
|
{
|
||||||
@@ -4,9 +4,9 @@
|
|||||||
|
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Interface;
|
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class KeyboardManagerProfile : ISettingsConfig
|
public class KeyboardManagerProfile : ISettingsConfig
|
||||||
{
|
{
|
||||||
@@ -6,7 +6,7 @@ using System.Collections.Generic;
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class KeyboardManagerProperties
|
public class KeyboardManagerProperties
|
||||||
{
|
{
|
||||||
@@ -3,9 +3,9 @@
|
|||||||
// See the LICENSE file in the project root for more information.
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Interface;
|
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class KeyboardManagerSettings : BasePTModuleSettings, ISettingsConfig
|
public class KeyboardManagerSettings : BasePTModuleSettings, ISettingsConfig
|
||||||
{
|
{
|
||||||
@@ -6,9 +6,9 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Utilities;
|
using Microsoft.PowerToys.Settings.UI.Library.Utilities;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class KeysDataModel
|
public class KeysDataModel
|
||||||
{
|
{
|
||||||
@@ -8,13 +8,14 @@
|
|||||||
<Version>$(Version).0</Version>
|
<Version>$(Version).0</Version>
|
||||||
<Authors>Microsoft Corporation</Authors>
|
<Authors>Microsoft Corporation</Authors>
|
||||||
<Product>PowerToys</Product>
|
<Product>PowerToys</Product>
|
||||||
<Description>PowerToys Settings UI Lib</Description>
|
<Description>PowerToys Settings UI Library</Description>
|
||||||
<Copyright>Copyright (C) 2020 Microsoft Corporation</Copyright>
|
<Copyright>Copyright (C) 2020 Microsoft Corporation</Copyright>
|
||||||
<RepositoryUrl>https://github.com/microsoft/PowerToys</RepositoryUrl>
|
<RepositoryUrl>https://github.com/microsoft/PowerToys</RepositoryUrl>
|
||||||
<RepositoryType>Github</RepositoryType>
|
<RepositoryType>Github</RepositoryType>
|
||||||
<PackageTags>PowerToys</PackageTags>
|
<PackageTags>PowerToys</PackageTags>
|
||||||
<NeutralLanguage>en-US</NeutralLanguage>
|
<NeutralLanguage>en-US</NeutralLanguage>
|
||||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||||
|
<AssemblyName>Microsoft.PowerToys.Settings.UI.Lib</AssemblyName>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
@@ -41,6 +42,11 @@
|
|||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
</PackageReference>
|
</PackageReference>
|
||||||
<PackageReference Include="System.Text.Json" Version="4.7.2" />
|
<PackageReference Include="System.Text.Json" Version="4.7.2" />
|
||||||
|
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers">
|
||||||
|
<Version>3.3.0</Version>
|
||||||
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
</PackageReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class OutGoingGeneralSettings
|
public class OutGoingGeneralSettings
|
||||||
{
|
{
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class PowerLauncherProperties
|
public class PowerLauncherProperties
|
||||||
{
|
{
|
||||||
@@ -5,9 +5,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Interface;
|
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class PowerLauncherSettings : BasePTModuleSettings, ISettingsConfig
|
public class PowerLauncherSettings : BasePTModuleSettings, ISettingsConfig
|
||||||
{
|
{
|
||||||
@@ -8,7 +8,7 @@ using System.Text.Json.Serialization;
|
|||||||
using Microsoft.PowerToys.Settings.Telemetry;
|
using Microsoft.PowerToys.Settings.Telemetry;
|
||||||
using Microsoft.PowerToys.Telemetry;
|
using Microsoft.PowerToys.Telemetry;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class PowerPreviewProperties
|
public class PowerPreviewProperties
|
||||||
{
|
{
|
||||||
@@ -3,9 +3,9 @@
|
|||||||
// See the LICENSE file in the project root for more information.
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Interface;
|
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class PowerPreviewSettings : BasePTModuleSettings, ISettingsConfig
|
public class PowerPreviewSettings : BasePTModuleSettings, ISettingsConfig
|
||||||
{
|
{
|
||||||
@@ -3,9 +3,9 @@
|
|||||||
// See the LICENSE file in the project root for more information.
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Interface;
|
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class PowerRenameLocalProperties : ISettingsConfig
|
public class PowerRenameLocalProperties : ISettingsConfig
|
||||||
{
|
{
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class PowerRenameProperties
|
public class PowerRenameProperties
|
||||||
{
|
{
|
||||||
@@ -4,9 +4,9 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Interface;
|
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class PowerRenameSettings : BasePTModuleSettings, ISettingsConfig
|
public class PowerRenameSettings : BasePTModuleSettings, ISettingsConfig
|
||||||
{
|
{
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class PowerRenameSettingsIPCMessage
|
public class PowerRenameSettingsIPCMessage
|
||||||
{
|
{
|
||||||
@@ -6,7 +6,7 @@ using System.Collections.Generic;
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class RemapKeysDataModel
|
public class RemapKeysDataModel
|
||||||
{
|
{
|
||||||
@@ -3,9 +3,9 @@
|
|||||||
// See the LICENSE file in the project root for more information.
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Interface;
|
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
// This Singleton class is a wrapper around the settings configurations that are accessed by viewmodels.
|
// This Singleton class is a wrapper around the settings configurations that are accessed by viewmodels.
|
||||||
// This class can have only one instance and therefore the settings configurations are common to all.
|
// This class can have only one instance and therefore the settings configurations are common to all.
|
||||||
@@ -6,10 +6,10 @@ using System;
|
|||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Interface;
|
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Utilities;
|
using Microsoft.PowerToys.Settings.UI.Library.Utilities;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class SettingsUtils : ISettingsUtils
|
public class SettingsUtils : ISettingsUtils
|
||||||
{
|
{
|
||||||
@@ -123,7 +123,7 @@ namespace Microsoft.PowerToys.Settings.UI.Lib
|
|||||||
#if DEBUG
|
#if DEBUG
|
||||||
if (e is ArgumentException || e is ArgumentNullException || e is PathTooLongException)
|
if (e is ArgumentException || e is ArgumentNullException || e is PathTooLongException)
|
||||||
{
|
{
|
||||||
throw e;
|
throw;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class ShortcutGuideProperties
|
public class ShortcutGuideProperties
|
||||||
{
|
{
|
||||||
@@ -3,9 +3,9 @@
|
|||||||
// See the LICENSE file in the project root for more information.
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Interface;
|
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class ShortcutGuideSettings : BasePTModuleSettings, ISettingsConfig
|
public class ShortcutGuideSettings : BasePTModuleSettings, ISettingsConfig
|
||||||
{
|
{
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class ShortcutGuideSettingsIPCMessage
|
public class ShortcutGuideSettingsIPCMessage
|
||||||
{
|
{
|
||||||
@@ -6,7 +6,7 @@ using System.Collections.Generic;
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class ShortcutsKeyDataModel
|
public class ShortcutsKeyDataModel
|
||||||
{
|
{
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class SndFancyZonesSettings
|
public class SndFancyZonesSettings
|
||||||
{
|
{
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class SndImageResizerSettings
|
public class SndImageResizerSettings
|
||||||
{
|
{
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class SndKeyboardManagerSettings
|
public class SndKeyboardManagerSettings
|
||||||
{
|
{
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
// Represents a powertoys module settings setnt to the runner.
|
// Represents a powertoys module settings setnt to the runner.
|
||||||
public class SndModuleSettings<T>
|
public class SndModuleSettings<T>
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class SndPowerPreviewSettings
|
public class SndPowerPreviewSettings
|
||||||
{
|
{
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class SndPowerRenameSettings
|
public class SndPowerRenameSettings
|
||||||
{
|
{
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class SndShortcutGuideSettings
|
public class SndShortcutGuideSettings
|
||||||
{
|
{
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
// Represents the configuration property of the settings that store string type.
|
// Represents the configuration property of the settings that store string type.
|
||||||
public class StringProperty
|
public class StringProperty
|
||||||
@@ -7,9 +7,9 @@ using System.Diagnostics;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.CustomAction;
|
using Microsoft.PowerToys.Settings.UI.Library.CustomAction;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib.Utilities
|
namespace Microsoft.PowerToys.Settings.UI.Library.Utilities
|
||||||
{
|
{
|
||||||
public static class Helper
|
public static class Helper
|
||||||
{
|
{
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||||
// See the LICENSE file in the project root for more information.
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib.Utilities
|
namespace Microsoft.PowerToys.Settings.UI.Library.Utilities
|
||||||
{
|
{
|
||||||
public interface IIOProvider
|
public interface IIOProvider
|
||||||
{
|
{
|
||||||
@@ -7,7 +7,7 @@ using System.Diagnostics;
|
|||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib.Utilities
|
namespace Microsoft.PowerToys.Settings.UI.Library.Utilities
|
||||||
{
|
{
|
||||||
public static class Logger
|
public static class Logger
|
||||||
{
|
{
|
||||||
@@ -7,7 +7,7 @@ using System.Collections.Generic;
|
|||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib.Utilities
|
namespace Microsoft.PowerToys.Settings.UI.Library.Utilities
|
||||||
{
|
{
|
||||||
internal static class NativeMethods
|
internal static class NativeMethods
|
||||||
{
|
{
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib.Utilities
|
namespace Microsoft.PowerToys.Settings.UI.Library.Utilities
|
||||||
{
|
{
|
||||||
public class SystemIOProvider : IIOProvider
|
public class SystemIOProvider : IIOProvider
|
||||||
{
|
{
|
||||||
@@ -5,10 +5,10 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Helpers;
|
using Microsoft.PowerToys.Settings.UI.Library.Helpers;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Interface;
|
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib.ViewModels
|
namespace Microsoft.PowerToys.Settings.UI.Library.ViewModels
|
||||||
{
|
{
|
||||||
public class ColorPickerViewModel : Observable
|
public class ColorPickerViewModel : Observable
|
||||||
{
|
{
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Windows.Input;
|
using System.Windows.Input;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib.ViewModels.Commands
|
namespace Microsoft.PowerToys.Settings.UI.Library.ViewModels.Commands
|
||||||
{
|
{
|
||||||
public class ButtonClickCommand : ICommand
|
public class ButtonClickCommand : ICommand
|
||||||
{
|
{
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Windows.Input;
|
using System.Windows.Input;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib.ViewModels.Commands
|
namespace Microsoft.PowerToys.Settings.UI.Library.ViewModels.Commands
|
||||||
{
|
{
|
||||||
public class RelayCommand : ICommand
|
public class RelayCommand : ICommand
|
||||||
{
|
{
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Windows.Input;
|
using System.Windows.Input;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib.ViewModels.Commands
|
namespace Microsoft.PowerToys.Settings.UI.Library.ViewModels.Commands
|
||||||
{
|
{
|
||||||
public class RelayCommand<T> : ICommand
|
public class RelayCommand<T> : ICommand
|
||||||
{
|
{
|
||||||
@@ -6,12 +6,11 @@ using System;
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Helpers;
|
using Microsoft.PowerToys.Settings.UI.Library.Helpers;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Interface;
|
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Utilities;
|
using Microsoft.PowerToys.Settings.UI.Library.ViewModels.Commands;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.ViewModels.Commands;
|
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib.ViewModels
|
namespace Microsoft.PowerToys.Settings.UI.Library.ViewModels
|
||||||
{
|
{
|
||||||
public class FancyZonesViewModel : Observable
|
public class FancyZonesViewModel : Observable
|
||||||
{
|
{
|
||||||
@@ -5,12 +5,12 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Helpers;
|
using Microsoft.PowerToys.Settings.UI.Library.Helpers;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Interface;
|
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Utilities;
|
using Microsoft.PowerToys.Settings.UI.Library.Utilities;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.ViewModels.Commands;
|
using Microsoft.PowerToys.Settings.UI.Library.ViewModels.Commands;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib.ViewModels
|
namespace Microsoft.PowerToys.Settings.UI.Library.ViewModels
|
||||||
{
|
{
|
||||||
public class GeneralViewModel : Observable
|
public class GeneralViewModel : Observable
|
||||||
{
|
{
|
||||||
@@ -8,11 +8,11 @@ using System.ComponentModel;
|
|||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Helpers;
|
using Microsoft.PowerToys.Settings.UI.Library.Helpers;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Interface;
|
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Utilities;
|
using Microsoft.PowerToys.Settings.UI.Library.Utilities;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib.ViewModels
|
namespace Microsoft.PowerToys.Settings.UI.Library.ViewModels
|
||||||
{
|
{
|
||||||
public class ImageResizerViewModel : Observable
|
public class ImageResizerViewModel : Observable
|
||||||
{
|
{
|
||||||
@@ -49,7 +49,7 @@ namespace Microsoft.PowerToys.Settings.UI.Lib.ViewModels
|
|||||||
#if DEBUG
|
#if DEBUG
|
||||||
if (e is ArgumentException || e is ArgumentNullException || e is PathTooLongException)
|
if (e is ArgumentException || e is ArgumentNullException || e is PathTooLongException)
|
||||||
{
|
{
|
||||||
throw e;
|
throw;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
Settings = new ImageResizerSettings();
|
Settings = new ImageResizerSettings();
|
||||||
@@ -10,12 +10,12 @@ using System.Linq;
|
|||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Windows.Input;
|
using System.Windows.Input;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Helpers;
|
using Microsoft.PowerToys.Settings.UI.Library.Helpers;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Interface;
|
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Utilities;
|
using Microsoft.PowerToys.Settings.UI.Library.Utilities;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.ViewModels.Commands;
|
using Microsoft.PowerToys.Settings.UI.Library.ViewModels.Commands;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib.ViewModels
|
namespace Microsoft.PowerToys.Settings.UI.Library.ViewModels
|
||||||
{
|
{
|
||||||
public class KeyboardManagerViewModel : Observable
|
public class KeyboardManagerViewModel : Observable
|
||||||
{
|
{
|
||||||
@@ -42,6 +42,7 @@ namespace Microsoft.PowerToys.Settings.UI.Lib.ViewModels
|
|||||||
|
|
||||||
private Func<List<KeysDataModel>, int> FilterRemapKeysList { get; }
|
private Func<List<KeysDataModel>, int> FilterRemapKeysList { get; }
|
||||||
|
|
||||||
|
[SuppressMessage("Design", "CA1031:Do not catch general exception types", Justification = "Exceptions should not crash the program but will be logged until we can understand common exception scenarios")]
|
||||||
public KeyboardManagerViewModel(ISettingsUtils settingsUtils, ISettingsRepository<GeneralSettings> settingsRepository, Func<string, int> ipcMSGCallBackFunc, Func<List<KeysDataModel>, int> filterRemapKeysList)
|
public KeyboardManagerViewModel(ISettingsUtils settingsUtils, ISettingsRepository<GeneralSettings> settingsRepository, Func<string, int> ipcMSGCallBackFunc, Func<List<KeysDataModel>, int> filterRemapKeysList)
|
||||||
{
|
{
|
||||||
if (settingsRepository == null)
|
if (settingsRepository == null)
|
||||||
@@ -69,7 +70,7 @@ namespace Microsoft.PowerToys.Settings.UI.Lib.ViewModels
|
|||||||
#if DEBUG
|
#if DEBUG
|
||||||
if (e is ArgumentException || e is ArgumentNullException || e is PathTooLongException)
|
if (e is ArgumentException || e is ArgumentNullException || e is PathTooLongException)
|
||||||
{
|
{
|
||||||
throw e;
|
throw;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -6,10 +6,10 @@ using System;
|
|||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Helpers;
|
using Microsoft.PowerToys.Settings.UI.Library.Helpers;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Interface;
|
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib.ViewModels
|
namespace Microsoft.PowerToys.Settings.UI.Library.ViewModels
|
||||||
{
|
{
|
||||||
public class PowerLauncherViewModel : Observable
|
public class PowerLauncherViewModel : Observable
|
||||||
{
|
{
|
||||||
@@ -4,10 +4,10 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Helpers;
|
using Microsoft.PowerToys.Settings.UI.Library.Helpers;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Interface;
|
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib.ViewModels
|
namespace Microsoft.PowerToys.Settings.UI.Library.ViewModels
|
||||||
{
|
{
|
||||||
public class PowerPreviewViewModel : Observable
|
public class PowerPreviewViewModel : Observable
|
||||||
{
|
{
|
||||||
@@ -6,11 +6,11 @@ using System;
|
|||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Helpers;
|
using Microsoft.PowerToys.Settings.UI.Library.Helpers;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Interface;
|
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Utilities;
|
using Microsoft.PowerToys.Settings.UI.Library.Utilities;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib.ViewModels
|
namespace Microsoft.PowerToys.Settings.UI.Library.ViewModels
|
||||||
{
|
{
|
||||||
public class PowerRenameViewModel : Observable
|
public class PowerRenameViewModel : Observable
|
||||||
{
|
{
|
||||||
@@ -51,7 +51,7 @@ namespace Microsoft.PowerToys.Settings.UI.Lib.ViewModels
|
|||||||
#if DEBUG
|
#if DEBUG
|
||||||
if (e is ArgumentException || e is ArgumentNullException || e is PathTooLongException)
|
if (e is ArgumentException || e is ArgumentNullException || e is PathTooLongException)
|
||||||
{
|
{
|
||||||
throw e;
|
throw;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
PowerRenameLocalProperties localSettings = new PowerRenameLocalProperties();
|
PowerRenameLocalProperties localSettings = new PowerRenameLocalProperties();
|
||||||
@@ -4,10 +4,10 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Helpers;
|
using Microsoft.PowerToys.Settings.UI.Library.Helpers;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Interface;
|
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Lib.ViewModels
|
namespace Microsoft.PowerToys.Settings.UI.Library.ViewModels
|
||||||
{
|
{
|
||||||
public class ShortcutGuideViewModel : Observable
|
public class ShortcutGuideViewModel : Observable
|
||||||
{
|
{
|
||||||
@@ -75,7 +75,7 @@
|
|||||||
<ProjectReference Include="..\..\common\interop\interop.vcxproj" />
|
<ProjectReference Include="..\..\common\interop\interop.vcxproj" />
|
||||||
<ProjectReference Include="..\..\common\ManagedCommon\ManagedCommon.csproj" />
|
<ProjectReference Include="..\..\common\ManagedCommon\ManagedCommon.csproj" />
|
||||||
<ProjectReference Include="..\..\common\ManagedTelemetry\Telemetry\Telemetry.csproj" />
|
<ProjectReference Include="..\..\common\ManagedTelemetry\Telemetry\Telemetry.csproj" />
|
||||||
<ProjectReference Include="..\Microsoft.PowerToys.Settings.UI.Lib\Microsoft.PowerToys.Settings.UI.Lib.csproj" />
|
<ProjectReference Include="..\Microsoft.PowerToys.Settings.UI.Library\Microsoft.PowerToys.Settings.UI.Library.csproj" />
|
||||||
<ProjectReference Include="..\Microsoft.PowerToys.Settings.UI\Microsoft.PowerToys.Settings.UI.csproj" />
|
<ProjectReference Include="..\Microsoft.PowerToys.Settings.UI\Microsoft.PowerToys.Settings.UI.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using Microsoft.PowerToys.Settings.UI.Lib;
|
using Microsoft.PowerToys.Settings.UI.Library;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Interface;
|
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Utilities;
|
using Microsoft.PowerToys.Settings.UI.Library.Utilities;
|
||||||
using Microsoft.PowerToys.Settings.UI.UnitTests.Mocks;
|
using Microsoft.PowerToys.Settings.UI.UnitTests.Mocks;
|
||||||
using Moq;
|
using Moq;
|
||||||
using System;
|
using System;
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Microsoft.PowerToys.Settings.UI.Lib\Microsoft.PowerToys.Settings.UI.Lib.csproj" />
|
<ProjectReference Include="..\Microsoft.PowerToys.Settings.UI.Library\Microsoft.PowerToys.Settings.UI.Library.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using Microsoft.PowerToys.Settings.UI.Lib.Utilities;
|
using Microsoft.PowerToys.Settings.UI.Library.Utilities;
|
||||||
using Moq;
|
using Moq;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using Microsoft.PowerToys.Settings.UI.Lib;
|
using Microsoft.PowerToys.Settings.UI.Library;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Interface;
|
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
|
||||||
using Moq;
|
using Moq;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
// See the LICENSE file in the project root for more information.
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib;
|
using Microsoft.PowerToys.Settings.UI.Library;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Utilities;
|
using Microsoft.PowerToys.Settings.UI.Library.Utilities;
|
||||||
using Microsoft.PowerToys.Settings.UI.UnitTests.Mocks;
|
using Microsoft.PowerToys.Settings.UI.UnitTests.Mocks;
|
||||||
using Microsoft.PowerToys.Settings.UnitTest;
|
using Microsoft.PowerToys.Settings.UnitTest;
|
||||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||||
// See the LICENSE file in the project root for more information.
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib;
|
using Microsoft.PowerToys.Settings.UI.Library;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Interface;
|
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UnitTest
|
namespace Microsoft.PowerToys.Settings.UnitTest
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
// See the LICENSE file in the project root for more information.
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Utilities;
|
using Microsoft.PowerToys.Settings.UI.Library.Utilities;
|
||||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
|
|
||||||
namespace CommonLibTest
|
namespace CommonLibTest
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib;
|
using Microsoft.PowerToys.Settings.UI.Library;
|
||||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
using Microsoft.PowerToys.Settings.UI.UnitTests.Mocks;
|
using Microsoft.PowerToys.Settings.UI.UnitTests.Mocks;
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ using System;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib;
|
using Microsoft.PowerToys.Settings.UI.Library;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Utilities;
|
using Microsoft.PowerToys.Settings.UI.Library.Utilities;
|
||||||
using Microsoft.PowerToys.Settings.UI.UnitTests.Mocks;
|
using Microsoft.PowerToys.Settings.UI.UnitTests.Mocks;
|
||||||
using Microsoft.PowerToys.Settings.UnitTest;
|
using Microsoft.PowerToys.Settings.UnitTest;
|
||||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib;
|
using Microsoft.PowerToys.Settings.UI.Library;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.ViewModels;
|
using Microsoft.PowerToys.Settings.UI.Library.ViewModels;
|
||||||
using Microsoft.PowerToys.Settings.UI.UnitTests.BackwardsCompatibility;
|
using Microsoft.PowerToys.Settings.UI.UnitTests.BackwardsCompatibility;
|
||||||
using Microsoft.PowerToys.Settings.UI.UnitTests.Mocks;
|
using Microsoft.PowerToys.Settings.UI.UnitTests.Mocks;
|
||||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ using System.Globalization;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using CommonLibTest;
|
using CommonLibTest;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib;
|
using Microsoft.PowerToys.Settings.UI.Library;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.ViewModels;
|
using Microsoft.PowerToys.Settings.UI.Library.ViewModels;
|
||||||
using Microsoft.PowerToys.Settings.UI.UnitTests.BackwardsCompatibility;
|
using Microsoft.PowerToys.Settings.UI.UnitTests.BackwardsCompatibility;
|
||||||
using Microsoft.PowerToys.Settings.UI.UnitTests.Mocks;
|
using Microsoft.PowerToys.Settings.UI.UnitTests.Mocks;
|
||||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ using System;
|
|||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib;
|
using Microsoft.PowerToys.Settings.UI.Library;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.ViewModels;
|
using Microsoft.PowerToys.Settings.UI.Library.ViewModels;
|
||||||
using Microsoft.PowerToys.Settings.UI.UnitTests.BackwardsCompatibility;
|
using Microsoft.PowerToys.Settings.UI.UnitTests.BackwardsCompatibility;
|
||||||
using Microsoft.PowerToys.Settings.UI.UnitTests.Mocks;
|
using Microsoft.PowerToys.Settings.UI.UnitTests.Mocks;
|
||||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ using System.Globalization;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib;
|
using Microsoft.PowerToys.Settings.UI.Library;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.Utilities;
|
using Microsoft.PowerToys.Settings.UI.Library.Utilities;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.ViewModels;
|
using Microsoft.PowerToys.Settings.UI.Library.ViewModels;
|
||||||
using Microsoft.PowerToys.Settings.UI.UnitTests.BackwardsCompatibility;
|
using Microsoft.PowerToys.Settings.UI.UnitTests.BackwardsCompatibility;
|
||||||
using Microsoft.PowerToys.Settings.UI.UnitTests.Mocks;
|
using Microsoft.PowerToys.Settings.UI.UnitTests.Mocks;
|
||||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib;
|
using Microsoft.PowerToys.Settings.UI.Library;
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib.ViewModels;
|
using Microsoft.PowerToys.Settings.UI.Library.ViewModels;
|
||||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
|
|
||||||
namespace ViewModelTests
|
namespace ViewModelTests
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user