1using System.Text.RegularExpressions;
2using System.Threading.Tasks;
32 [
Page(2,
"Script", 100)]
33 [Header(29,
"Default value:")]
34 [ToolTip(30,
"Default value presented to user.")]
40 [
Page(2,
"Script", 100)]
41 [Header(44,
"Minimum Value:")]
42 [ToolTip(45,
"The smallest value allowed.")]
43 public double?
Min {
get;
set; }
48 [
Page(2,
"Script", 100)]
49 [Header(46,
"Maximum Value:")]
50 [ToolTip(47,
"The largest value allowed.")]
51 public double?
Max {
get;
set; }
74 if (this.
Min.HasValue ||
this.Max.HasValue)
126 if (
string.IsNullOrEmpty(s))
Helps with parsing of commong data types.
static string Encode(bool x)
Encodes a Boolean for use in XML and other formats.
static bool TryParse(string s, out double Value)
Tries to decode a string encoded double.
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 ...
Represents a double-precision floating-point-valued script parameter.
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.
double? Min
Optional minimum value allowed.
override async Task PopulateForm(DataForm Parameters, Language Language, object Value)
Populates a data form with parameters for the object.
ScriptDoubleParameterNode()
Represents a double-precision floating-point-valued script parameter.
double? Max
Optional maximum value allowed.
double? DefaultValue
Default parameter value.
override Task< string > GetTypeNameAsync(Language Language)
Gets the type name of the node.
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.