mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
[stylecop] program plugin/unit test first pass (#5908)
* initial pass * multiple whitespace fixes
This commit is contained in:
@@ -1,19 +1,17 @@
|
||||
// Copyright (c) Microsoft Corporation
|
||||
// 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 System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Security.Principal;
|
||||
using System.Text;
|
||||
using System.Xml.Linq;
|
||||
using Windows.ApplicationModel;
|
||||
using Windows.Management.Deployment;
|
||||
using Microsoft.Plugin.Program.Logger;
|
||||
using Rect = System.Windows.Rect;
|
||||
using System.Windows.Controls;
|
||||
using System.Runtime.InteropServices.ComTypes;
|
||||
using Wox.Infrastructure.Logger;
|
||||
using System.Xml.Linq;
|
||||
using Microsoft.Plugin.Program.Logger;
|
||||
using Microsoft.Plugin.Program.Win32;
|
||||
using Wox.Infrastructure.Logger;
|
||||
|
||||
namespace Microsoft.Plugin.Program.Programs
|
||||
{
|
||||
@@ -21,8 +19,11 @@ namespace Microsoft.Plugin.Program.Programs
|
||||
public partial class UWP
|
||||
{
|
||||
public string Name { get; }
|
||||
|
||||
public string FullName { get; }
|
||||
|
||||
public string FamilyName { get; }
|
||||
|
||||
public string Location { get; set; }
|
||||
|
||||
public IList<UWPApplication> Apps { get; private set; }
|
||||
@@ -86,9 +87,7 @@ namespace Microsoft.Plugin.Program.Programs
|
||||
Apps = new List<UWPApplication>().ToArray();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/// http://www.hanselman.com/blog/GetNamespacesFromAnXMLDocumentWithXPathDocumentAndLINQToXML.aspx
|
||||
private static string[] XmlNamespaces(string path)
|
||||
{
|
||||
@@ -195,7 +194,6 @@ namespace Microsoft.Plugin.Program.Programs
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
return valid;
|
||||
});
|
||||
|
||||
@@ -229,7 +227,7 @@ namespace Microsoft.Plugin.Program.Programs
|
||||
Windows10,
|
||||
Windows81,
|
||||
Windows8,
|
||||
Unknown
|
||||
Unknown,
|
||||
}
|
||||
|
||||
[Flags]
|
||||
@@ -244,6 +242,5 @@ namespace Microsoft.Plugin.Program.Programs
|
||||
Ok = 0x0,
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user