47 lines
687 B
C#
47 lines
687 B
C#
using System;
|
|
|
|
namespace umbraco.macroRenderings
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public class numeric : System.Web.UI.WebControls.TextBox, interfaces.IMacroGuiRendering
|
|
{
|
|
string _value = "";
|
|
|
|
public bool ShowCaption
|
|
{
|
|
get {return true;}
|
|
}
|
|
|
|
public string Value
|
|
{
|
|
get {
|
|
return base.Text;
|
|
}
|
|
set
|
|
{
|
|
this.Text = value;
|
|
_value = value;
|
|
}
|
|
}
|
|
|
|
protected override void OnInit(EventArgs e)
|
|
{
|
|
base.OnInit (e);
|
|
this.CssClass = "guiInputTextStandard";
|
|
this.Attributes.Add("style", "width: 30%");
|
|
}
|
|
|
|
|
|
public numeric()
|
|
{
|
|
//
|
|
// TODO: Add constructor logic here
|
|
//
|
|
}
|
|
|
|
|
|
}
|
|
}
|