fx cop & FZ editor part 1 of many (#11241)

* fixing first set of host of bugs

* objects are already set to defaults

* shifting to string.is null / empty

* setters

* fixing stylecop oops

* checking in the FxCop dep but commenting it out for easier coming back
This commit is contained in:
Clint Rutkas
2021-05-14 09:54:34 -07:00
committed by GitHub
parent 19952ef634
commit 319adcbd62
9 changed files with 49 additions and 29 deletions

View File

@@ -171,7 +171,7 @@ namespace FancyZonesEditor.Models
List<string> result = new List<string>();
foreach (var pair in MainWindowSettingsModel.QuickKeys.SelectedKeys)
{
if (pair.Value == string.Empty || pair.Value == Uuid)
if (string.IsNullOrEmpty(pair.Value) || pair.Value == Uuid)
{
result.Add(pair.Key);
}

View File

@@ -161,7 +161,7 @@ namespace FancyZonesEditor
}
}
private LayoutModel _selectedModel = null;
private LayoutModel _selectedModel;
public LayoutModel AppliedModel
{
@@ -180,7 +180,7 @@ namespace FancyZonesEditor
}
}
private LayoutModel _appliedModel = null;
private LayoutModel _appliedModel;
public static bool IsPredefinedLayout(LayoutModel model)
{