webdav portal filter + detail view added
This commit is contained in:
parent
280628e362
commit
51d432fd2e
156 changed files with 32494 additions and 260 deletions
|
@ -0,0 +1,29 @@
|
|||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Resources;
|
||||
|
||||
namespace WebsitePanel.WebDav.Core.Attributes.Resources
|
||||
{
|
||||
public class LocalizedDescriptionAttribute : DescriptionAttribute
|
||||
{
|
||||
private readonly string _resourceKey;
|
||||
private readonly ResourceManager _resource;
|
||||
public LocalizedDescriptionAttribute(Type resourceType, string resourceKey)
|
||||
{
|
||||
_resource = new ResourceManager(resourceType);
|
||||
_resourceKey = resourceKey;
|
||||
}
|
||||
|
||||
public override string Description
|
||||
{
|
||||
get
|
||||
{
|
||||
string displayName = _resource.GetString(_resourceKey);
|
||||
|
||||
return string.IsNullOrEmpty(displayName)
|
||||
? string.Format("[[{0}]]", _resourceKey)
|
||||
: displayName;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue