init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
17
KretaWeb/Attributes/KretaDisplayNameAttribute.cs
Normal file
17
KretaWeb/Attributes/KretaDisplayNameAttribute.cs
Normal file
|
@ -0,0 +1,17 @@
|
|||
using System.ComponentModel;
|
||||
using Kreta.BusinessLogic.Utils;
|
||||
|
||||
namespace Kreta.Web.Attributes
|
||||
{
|
||||
public class KretaDisplayNameAttribute : DisplayNameAttribute
|
||||
{
|
||||
public KretaDisplayNameAttribute(int resourceId)
|
||||
: base(GetMessageFromResource(resourceId))
|
||||
{ }
|
||||
|
||||
private static string GetMessageFromResource(int resourceId)
|
||||
{
|
||||
return StringResourcesUtils.GetString(resourceId);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue