inject the widget assembly into the IoC as we are going to need it further in
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using Windows.ApplicationModel.Resources.Core;
|
||||
using Windows.Storage;
|
||||
|
||||
namespace Hyperbar.Widget;
|
||||
|
||||
public interface IWidgetResourceInitialization :
|
||||
IInitializer
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public class WidgetResourceInitialization :
|
||||
IInitializer
|
||||
{
|
||||
public async Task InitializeAsync()
|
||||
{
|
||||
//FileInfo resourcePriFileInfo = new(Path.Combine(ForeignAssemblyDir, "resources.pri"));
|
||||
//if (!resourcePriFileInfo.Exists)
|
||||
//{
|
||||
// resourcePriFileInfo = new(Path.Combine(ForeignAssemblyDir, $"{ForeignAssemblyName}.pri"));
|
||||
//}
|
||||
|
||||
//if (!resourcePriFileInfo.Exists)
|
||||
//{
|
||||
// return;
|
||||
//}
|
||||
|
||||
//StorageFile file = await StorageFile.GetFileFromPathAsync(resourcePriFileInfo.FullName);
|
||||
//ResourceManager.Current.LoadPriFiles(new[] { file });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user