You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
667 B

using System;
namespace Operation
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false)]
class MenuMapping : Attribute
{
public string Name;
public string Icon;
public int Order;
public int Pcode;
public Type refc;
public MenuMapping(string name = "", string icon = "", int order = 1,
PermissionCode permission = PermissionCode.SYSTEM_DEFAULT, Type refc = null)
{
this.Icon = icon;
this.Name = name;
this.Order = order;
this.Pcode = (int)permission;
this.refc = refc;
}
}
}