Fixed a lot of line issues, few auto

This commit is contained in:
Clint Rutkas
2019-12-12 13:44:06 -08:00
parent 9e4752b114
commit a187456ac3
10 changed files with 104 additions and 49 deletions

View File

@@ -13,14 +13,13 @@ namespace FancyZonesEditor
/// </summary>
public partial class App : Application
{
public Settings ZoneSettings { get { return _settings; } }
public Settings ZoneSettings { get; }
private Settings _settings;
private ushort _idInitial = 0;
public App()
{
_settings = new Settings();
ZoneSettings = new Settings();
}
private void OnStartup(object sender, StartupEventArgs e)
@@ -34,7 +33,7 @@ namespace FancyZonesEditor
if (_idInitial != 0)
{
foreach (LayoutModel model in _settings.DefaultModels)
foreach (LayoutModel model in ZoneSettings.DefaultModels)
{
if (model.Id == _idInitial)
{
@@ -46,7 +45,7 @@ namespace FancyZonesEditor
if (foundModel == null)
{
foreach (LayoutModel model in _settings.CustomModels)
foreach (LayoutModel model in ZoneSettings.CustomModels)
{
if (model.Id == _idInitial)
{
@@ -60,7 +59,7 @@ namespace FancyZonesEditor
if (foundModel == null)
{
foundModel = _settings.DefaultModels[0];
foundModel = ZoneSettings.DefaultModels[0];
}
foundModel.IsSelected = true;