4using System.Threading.Tasks;
5using System.Windows.Controls;
17 private readonly TextBox textBox;
49 this.@value.Value =
Value;
61 get => this.@value.
Value;
62 set => this.@value.Value = value;
68 throw new InvalidOperationException(
"Read-only parameter.");
Converts values to strings.
static string ToString(object Value)
Converts a monetary value to a string, removing any round-off errors.
Contains information about a parameter
Parameter Parameter
Original parameter object in contract
Control Control
Generated control.
Contains information about a calculation parameter
override async Task< bool > ValidateParameter(Variables Variables)
Method called when the parameter needs to be validated.
override object Value
Parameter value
CalcParameterInfo(Contract Contract, CalcParameter Parameter, TextBox Control, DesignModel DesignModel, Property< ParameterInfo[]> Parameters)
Contains information about a calculation parameter
override void ContractUpdated(Contract Contract)
Called when the contract has been updated.
override void SetValue(string Value)
Sets the value.
Generic class for properties
virtual T Value
Current value of the property
Calculation contractual parameter
override async Task< bool > IsParameterValid(Variables Variables, ContractsClient Client)
Checks if the parameter value is valid.
Contains the definition of a contract
Abstract base class for contractual parameters
string ErrorText
After IsParameterValid(Variables) or IsParameterValid(Variables, ContractsClient) has been execited,...
abstract object ObjectValue
Parameter value.
ParameterErrorReason? ErrorReason
After IsParameterValid(Variables) or IsParameterValid(Variables, ContractsClient) has been execited,...