Rename YmlInterpreter to ManifestInterpreter
Some checks failed
Spell checking / Spell checking (push) Has been cancelled
Spell checking / Report (Push) (push) Has been cancelled
Spell checking / Report (PR) (push) Has been cancelled
Spell checking / Update PR (push) Has been cancelled

This commit is contained in:
Aaron Junker 2024-11-10 15:06:36 +01:00
parent da7b789bfe
commit 6952deb4ae
4 changed files with 6 additions and 10 deletions

View File

@ -8,17 +8,13 @@ using System.ComponentModel;
using System.Diagnostics; using System.Diagnostics;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using ShortcutGuide.Models; using ShortcutGuide.Models;
using Windows.Devices.SmartCards;
using WinUIEx;
using YamlDotNet.Serialization; using YamlDotNet.Serialization;
namespace ShortcutGuide namespace ShortcutGuide
{ {
public class YmlInterpreter public class ManifestInterpreter
{ {
public static ShortcutList GetShortcutsOfApplication(string applicationName) public static ShortcutList GetShortcutsOfApplication(string applicationName)
{ {

View File

@ -14,7 +14,7 @@ namespace ShortcutGuide
{ {
public static void Populate() public static void Populate()
{ {
string path = Path.Combine(YmlInterpreter.GetPathOfIntepretations(), "Microsoft.PowerToys.yml"); string path = Path.Combine(ManifestInterpreter.GetPathOfIntepretations(), "Microsoft.PowerToys.yml");
string content = File.ReadAllText(path); string content = File.ReadAllText(path);

View File

@ -32,7 +32,7 @@ namespace ShortcutGuide
public MainWindow() public MainWindow()
{ {
_currentApplicationIds = YmlInterpreter.GetAllCurrentApplicationIds(); _currentApplicationIds = ManifestInterpreter.GetAllCurrentApplicationIds();
InitializeComponent(); InitializeComponent();
@ -95,7 +95,7 @@ namespace ShortcutGuide
{ {
foreach (var item in _currentApplicationIds) foreach (var item in _currentApplicationIds)
{ {
if (item == YmlInterpreter.GetIndexYamlFile().DefaultShellName) if (item == ManifestInterpreter.GetIndexYamlFile().DefaultShellName)
{ {
WindowSelector.Items.Insert(0, new SelectorBarItem { Name = item, Text = "Windows", Icon = new FontIcon() { Glyph = "\xE770" } }); WindowSelector.Items.Insert(0, new SelectorBarItem { Name = item, Text = "Windows", Icon = new FontIcon() { Glyph = "\xE770" } });
} }
@ -103,7 +103,7 @@ namespace ShortcutGuide
{ {
try try
{ {
WindowSelector.Items.Add(new SelectorBarItem { Name = item, Text = YmlInterpreter.GetShortcutsOfApplication(item).Name }); WindowSelector.Items.Add(new SelectorBarItem { Name = item, Text = ManifestInterpreter.GetShortcutsOfApplication(item).Name });
} }
catch (IOException) catch (IOException)
{ {

View File

@ -17,7 +17,7 @@ namespace ShortcutGuide
{ {
public sealed partial class ShortcutView : Page, INotifyPropertyChanged public sealed partial class ShortcutView : Page, INotifyPropertyChanged
{ {
private ShortcutList shortcutList = YmlInterpreter.GetShortcutsOfApplication(ShortcutPageParameters.CurrentPageName); private ShortcutList shortcutList = ManifestInterpreter.GetShortcutsOfApplication(ShortcutPageParameters.CurrentPageName);
public ShortcutView() public ShortcutView()
{ {