using System;
namespace Yavsc.Model.FrontOffice
{
/// <summary>
/// Check box.
/// </summary>
public class CheckBox : FormInput
/// Initializes a new instance of the <see cref="Yavsc.Model.FrontOffice.CheckBox"/> class.
public CheckBox ()
}
#region implemented abstract members of FormInput
/// Gets the type.
/// <value>The type.</value>
public override string Type {
get {
return "checkbox";
/// Gets or sets a value indicating whether this <see cref="Yavsc.Model.FrontOffice.CheckBox"/> is value.
/// <value><c>true</c> if value; otherwise, <c>false</c>.</value>
public bool Value { get; set; }
/// Tos the html.
/// <returns>The html.</returns>
public override string ToHtml ()
return string.Format ("<input type=\"checkbox\" id=\"{0}\" name=\"{1}\" {2}/>", Id,Name,Value?"checked":"");
#endregion