1using System.Text.RegularExpressions;
2using System.Threading.Tasks;
31 [
Page(2,
"Script", 100)]
32 [Header(29,
"Default value:")]
33 [ToolTip(30,
"Default value presented to user.")]
39 [
Page(2,
"Script", 100)]
40 [Header(44,
"Minimum Value:")]
41 [ToolTip(45,
"The smallest value allowed.")]
42 public short?
Min {
get;
set; }
47 [
Page(2,
"Script", 100)]
48 [Header(46,
"Maximum Value:")]
49 [ToolTip(47,
"The largest value allowed.")]
50 public short?
Max {
get;
set; }
73 if (this.
Min.HasValue ||
this.Max.HasValue)
121 if (
string.IsNullOrEmpty(s))
128 else if (
short.TryParse(s, out
short Parsed))
Static class managing editable parameters in objects. Editable parameters are defined by using the at...
Class managing a page in a data form layout.
Contains information about a language.
Task< string > GetStringAsync(Type Type, int Id, string Default)
Gets the string value of a string ID. If no such string exists, a string is created with the default ...
override string ToString()
Represents a 16-bit integer-valued script parameter.
ScriptInt16ParameterNode()
Represents a 16-bit integer-valued script parameter.
override Task< string > GetTypeNameAsync(Language Language)
Gets the type name of the node.
short? DefaultValue
Default parameter value.
short? Min
Optional minimum value allowed.
short? Max
Optional maximum value allowed.
override async Task PopulateForm(DataForm Parameters, Language Language, object Value)
Populates a data form with parameters for the object.
override async Task SetParameter(DataForm Parameters, Language Language, bool OnlySetChanged, Variables Values, SetEditableFormResult Result)
Sets the parameters of the object, based on contents in the data form.
Represents a parameter with possible options on a command.
bool RestrictToOptions
Optional minimum value allowed.
async Task< KeyValuePair< string, string >[]> GetOptions()
Gets available options, if any are defined.
string Label
Parameter label.
bool Required
If parameter is required.
string Description
Parameter description.
string ParameterName
Parameter name.
string Page
Parameter name.