PowerToys/src/core/Microsoft.PowerToys.Settings.UI.Lib/EnabledModules.cs

43 lines
1.2 KiB
C#
Raw Normal View History

// Copyright (c) Microsoft Corporation
2020-04-17 02:45:27 +08:00
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
2020-04-20 21:03:26 +08:00
using System.Text.Json;
2020-04-17 02:45:27 +08:00
using System.Text.Json.Serialization;
namespace Microsoft.PowerToys.Settings.UI.Lib
{
public class EnabledModules
{
public EnabledModules()
{
this.FancyZones = false;
this.ImageResizer = false;
this.FileExplorerPreview = false;
this.PowerRename = false;
2020-04-20 21:03:26 +08:00
this.ShortcutGuide = false;
2020-04-17 02:45:27 +08:00
}
[JsonPropertyName("FancyZones")]
public bool FancyZones { get; set; }
[JsonPropertyName("ImageResizer")]
public bool ImageResizer { get; set; }
[JsonPropertyName("File Explorer Preview")]
public bool FileExplorerPreview { get; set; }
[JsonPropertyName("Shortcut Guide")]
public bool ShortcutGuide { get; set; }
public bool PowerRename { get; set; }
2020-04-20 21:03:26 +08:00
[JsonPropertyName("Keyboard Manager")]
public bool KeyboardManager { get; set; }
2020-04-20 21:03:26 +08:00
public string ToJsonString()
{
return JsonSerializer.Serialize(this);
}
2020-04-17 02:45:27 +08:00
}
}