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