mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 20:27:36 +02:00
more tweaks
This commit is contained in:
@@ -7,7 +7,6 @@ using System.Collections.Generic;
|
|||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.IO.Abstractions;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
@@ -42,8 +41,6 @@ namespace FancyZonesEditor
|
|||||||
private const string CrashReportDynamicAssemblyTag = "dynamic assembly doesn't have location";
|
private const string CrashReportDynamicAssemblyTag = "dynamic assembly doesn't have location";
|
||||||
private const string CrashReportLocationNullTag = "location is null or empty";
|
private const string CrashReportLocationNullTag = "location is null or empty";
|
||||||
|
|
||||||
private readonly IFileSystem _fileSystem = new FileSystem();
|
|
||||||
|
|
||||||
public MainWindowSettingsModel MainWindowSettings { get; }
|
public MainWindowSettingsModel MainWindowSettings { get; }
|
||||||
|
|
||||||
public static FancyZonesEditorIO FancyZonesEditorIO { get; private set; }
|
public static FancyZonesEditorIO FancyZonesEditorIO { get; private set; }
|
||||||
|
|||||||
@@ -40,15 +40,10 @@ namespace FancyZonesEditor
|
|||||||
public const ushort _blankCustomModelId = 0xFFFA;
|
public const ushort _blankCustomModelId = 0xFFFA;
|
||||||
public const ushort _lastDefinedId = _blankCustomModelId;
|
public const ushort _lastDefinedId = _blankCustomModelId;
|
||||||
|
|
||||||
private const int MaxNegativeSpacing = -10;
|
|
||||||
|
|
||||||
// Non-localizable strings
|
// Non-localizable strings
|
||||||
public static readonly string RegistryPath = "SOFTWARE\\SuperFancyZones";
|
public static readonly string RegistryPath = "SOFTWARE\\SuperFancyZones";
|
||||||
public static readonly string FullRegistryPath = "HKEY_CURRENT_USER\\" + RegistryPath;
|
public static readonly string FullRegistryPath = "HKEY_CURRENT_USER\\" + RegistryPath;
|
||||||
|
|
||||||
private const string LayoutTypeBlankStr = "blank";
|
|
||||||
private const string NullUuidStr = "null";
|
|
||||||
|
|
||||||
// hard coded data for all the "Priority Grid" configurations that are unique to "Grid"
|
// hard coded data for all the "Priority Grid" configurations that are unique to "Grid"
|
||||||
private static readonly byte[][] _priorityData = new byte[][]
|
private static readonly byte[][] _priorityData = new byte[][]
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace FancyZonesEditor.Utils
|
|||||||
{
|
{
|
||||||
if (execute == null)
|
if (execute == null)
|
||||||
{
|
{
|
||||||
throw new ArgumentNullException("execute");
|
throw new ArgumentNullException(nameof(execute));
|
||||||
}
|
}
|
||||||
|
|
||||||
_execute = execute;
|
_execute = execute;
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace FancyZonesEditor.Utils
|
|||||||
{
|
{
|
||||||
if (execute == null)
|
if (execute == null)
|
||||||
{
|
{
|
||||||
throw new ArgumentNullException("execute");
|
throw new ArgumentNullException(nameof(execute));
|
||||||
}
|
}
|
||||||
|
|
||||||
_execute = execute;
|
_execute = execute;
|
||||||
|
|||||||
Reference in New Issue
Block a user