Rename YmlInterpreter to ManifestInterpreter

This commit is contained in:
Aaron Junker 2024-11-10 15:06:36 +01:00
Родитель da7b789bfe
Коммит 6952deb4ae
4 изменённых файлов: 6 добавлений и 10 удалений

Просмотреть файл

@ -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)
{ {

Просмотреть файл

@ -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);

Просмотреть файл

@ -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)
{ {

Просмотреть файл

@ -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()
{ {