using System; namespace SalesCatalog.Model { public class TextInput:FormInput { #region implemented abstract members of FormInput public override string Type { get { return "text"; } } #endregion public TextInput () { } public TextInput (string txt) { text = txt; } string text = null; public static implicit operator string(TextInput t) { return t.text; } public static implicit operator TextInput(string t) { return new TextInput(t); } public string DefaultValue { get { return text; } set { text = (string) value; } } private bool multiline = false; public bool MultiLine { get { return multiline; } set { multiline = value; } } public override string ToHtml () { return MultiLine? string.Format ("", Id,Name,DefaultValue) : string.Format ("", Id,Name,DefaultValue); } } }