[Chore] Run solution code cleanup (#20584)

This commit is contained in:
Andrey Nekrasov
2022-09-16 11:54:58 +03:00
committed by GitHub
parent 09f4dead7f
commit ca3c758046
133 changed files with 108 additions and 359 deletions

View File

@@ -7,7 +7,6 @@ using System.Diagnostics;
using System.Threading;
using System.Windows;
using System.Windows.Input;
using System.Windows.Threading;
using Common.UI;
using FancyZonesEditor.Logs;
using FancyZonesEditor.Utils;

View File

@@ -4,7 +4,6 @@
namespace FancyZonesEditor.Controls
{
using System.Windows;
using System.Windows.Automation.Peers;
using System.Windows.Controls;

View File

@@ -290,11 +290,11 @@ namespace FancyZonesEditor
if (IsActualSize)
{
rect.Style = (Style)FindResource("CanvasLayoutActualScalePreviewStyle");
rect.Style = (Style)FindResource("CanvasLayoutActualScalePreviewStyle");
}
else
{
rect.Style = (Style)FindResource("CanvasLayoutSmallScalePreviewStyle");
rect.Style = (Style)FindResource("CanvasLayoutSmallScalePreviewStyle");
}
frame.Children.Add(rect);

View File

@@ -14,7 +14,6 @@ using Common.UI;
using FancyZonesEditor.Logs;
using FancyZonesEditor.Models;
using FancyZonesEditor.Utils;
using ModernWpf.Automation.Peers;
using ModernWpf.Controls;
namespace FancyZonesEditor

View File

@@ -2,7 +2,6 @@
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using FancyZonesEditor.Models;
namespace FancyZonesEditor

View File

@@ -24,7 +24,5 @@ namespace FancyZonesEditor
public int Offset { get; }
}
#pragma warning disable CA1711 // Identifiers should not have incorrect suffix (Causes warning in another class if fixed)
public delegate void SplitEventHandler(object sender, SplitEventArgs args);
#pragma warning restore CA1711 // Identifiers should not have incorrect suffix
}

View File

@@ -17,11 +17,9 @@ namespace FancyZonesEditor.Utils
[DllImport("user32.dll")]
private static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);
#pragma warning disable SA1310 // Field names should not contain underscore
private const int GWL_EX_STYLE = -20;
private const int WS_EX_APPWINDOW = 0x00040000;
private const int WS_EX_TOOLWINDOW = 0x00000080;
#pragma warning restore SA1310 // Field names should not contain underscore
public static void SetWindowStyleToolWindow(Window hwnd)
{