1using System.Threading.Tasks;
11 private readonly
string name;
12 private readonly
string page;
13 private readonly
string label;
14 private readonly
string description;
34 public string Name => this.name;
39 public string Page => this.page;
44 public string Label => this.label;
67 public override bool Equals(
object obj)
70 this.GetType() == obj.GetType() &&
77 return this.name.GetHashCode();
89 Output.WriteStartElement(
"field");
90 Output.WriteAttributeString(
"var", this.name);
92 Output.WriteAttributeString(
"label", this.label);
94 Output.WriteElementString(
"desc", this.description);
95 Output.WriteElementString(
"value", StringValue ??
string.Empty);
99 Output.WriteElementString(
"xdd",
"notSame",
null,
string.Empty);
100 Output.WriteEndElement();
108 get {
return "text-single"; }
Abstract base class for control parameters.
override bool Equals(object obj)
virtual async Task ExportToForm(XmlWriter Output, IThingReference Node)
Exports the field to a data form.
abstract Task< bool > SetStringValue(IThingReference Node, string StringValue)
Sets the value of the control parameter.
string Description
Description for parameter.
string Page
On which page in the control dialog the parameter should appear.
string Name
Parameter Name
abstract Task ExportValidationRules(XmlWriter Output, IThingReference Node)
Exports form validation rules for the parameter.
override int GetHashCode()
abstract Task< string > GetStringValue(IThingReference Node)
Gets the string value of the control parameter.
virtual string FormFieldType
Data form field type.
ControlParameter(string Name, string Page, string Label, string Description)
Abstract base class for control parameters.
string Label
Label for parameter.
Interface for thing references.