Files
yavsc/SalesCatalog/Model/CheckBox.cs
Paul Schneider 301dbdcb6d Added a "Type" property to form inputs.
Fixed the second "title" section found in web page heads.
2014-10-01 15:34:00 +02:00

30 lines
451 B
C#

using System;
namespace SalesCatalog.Model
{
public class CheckBox : FormInput
{
public CheckBox ()
{
}
#region implemented abstract members of FormInput
public override string Type {
get {
return "checkbox";
}
}
public bool Value { get; set; }
public override string ToHtml ()
{
return string.Format ("<input type=\"checkbox\" id=\"{0}\" name=\"{1}\" {2}/>", Id,Name,Value?"checked":"");
}
#endregion
}
}