te
This commit is contained in:
parent
01151e679b
commit
57b2f0400e
265 changed files with 22828 additions and 6 deletions
26
Unused/Decal.Adapter/ViewAttribute.cs
Normal file
26
Unused/Decal.Adapter/ViewAttribute.cs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
using System;
|
||||
|
||||
namespace Decal.Adapter;
|
||||
|
||||
/// <summary>
|
||||
/// Defines a plugin view
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
|
||||
public sealed class ViewAttribute : ViewBaseAttribute
|
||||
{
|
||||
private string myResource;
|
||||
|
||||
/// <summary>
|
||||
/// The resource to load
|
||||
/// </summary>
|
||||
public string Resource => myResource;
|
||||
|
||||
/// <summary>
|
||||
/// Constructs a new view from the specified resource
|
||||
/// </summary>
|
||||
/// <param name="Resource">Embedded resource path</param>
|
||||
public ViewAttribute(string resource)
|
||||
{
|
||||
myResource = resource;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue