using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace CustomControls
{
[DefaultProperty("Text")]
[ToolboxData("<{0}:TF_LinkButton runat=server></{0}:TF_LinkButton>")]
public class TF_LinkButton : LinkButton
{
private TFConstants functionID = TFConstants.FUNCTION_NOACCESS;
private AccessConstants privilegeID = AccessConstants.NOACCESS;
private int iFunctionIDValue = 0;
private int iPrivilegeIDValue = 0;
[Bindable(true)]
[Category("Custom Properties")]
[DefaultValue(typeof(AccessConstants), "NOACCESS")]
[Localizable(true)]
public AccessConstants PrivilegeID
{
get
{
return privilegeID;
}
set
{
iPrivilegeIDValue = (int)value;
privilegeID = value;
}
}
public int PrivilegeIDValue
{
get
{
return iPrivilegeIDValue;
}
}
[Bindable(true)]
[Category("Custom Properties")]
[DefaultValue(typeof(TFConstants), "FUNCTION_NOACCESS")]
[Localizable(true)]
public TFConstants FunctionID
{
get
{
return functionID;
}
set
{
iFunctionIDValue = (int)value;
functionID = value;
}
}
public int FunctionIDValue
{
get
{
return iFunctionIDValue;
}
}
}
}