mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 03:36:44 +02:00
Refactoring directory path for UI resource
This commit is contained in:
15
Wox.Core/Resource/Resource.cs
Normal file
15
Wox.Core/Resource/Resource.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System.IO;
|
||||
using System.Windows;
|
||||
using Wox.Infrastructure;
|
||||
|
||||
namespace Wox.Core.UI
|
||||
{
|
||||
public abstract class Resource
|
||||
{
|
||||
public string DirectoryName { get; protected set; }
|
||||
|
||||
protected string DirectoryPath => Path.Combine(WoxDirectroy.Executable, DirectoryName);
|
||||
|
||||
public abstract ResourceDictionary GetResourceDictionary();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user