3using System.Windows.Controls;
49 get => this.min.Value;
52 this.dateTimeParameter.Min = value;
53 this.min.Value = value;
63 get => this.max.Value;
66 this.dateTimeParameter.Max = value;
67 this.max.Value = value;
75 get => base.MinIncluded;
78 this.dateTimeParameter.MinIncluded = value;
79 base.MinIncluded = value;
86 get => base.MaxIncluded;
89 this.dateTimeParameter.MaxIncluded = value;
90 base.MaxIncluded = value;
97 this.Max = Parse(
Value);
103 this.Min = Parse(
Value);
109 this.Value = Parse(
Value);
112 private static DateTime? Parse(
string Value)
114 if (
string.IsNullOrEmpty(
Value))
119 throw new ArgumentException(
"Invalid date and time value.", nameof(
Value));
Contains information about a parameter
virtual object Value
Parameter value
Parameter Parameter
Original parameter object in contract
void Revalidate()
Revalidates the parameter value.
Control Control
Generated control.
Contains information about a date and time parameter
DateTimeParameterInfo(Contract Contract, DateTimeParameter Parameter, Control Control, Control MinControl, Control MinIncludedControl, Control MaxControl, Control MaxIncludedControl, DesignModel DesignModel, Property< ParameterInfo[]> Parameters)
Contains information about a date and time parameter
override void SetMin(string Value)
Sets the minimum value.
override bool MaxIncluded
override void SetValue(string Value)
Sets the value.
DateTime? Min
Minimum value of parameter
override void SetMax(string Value)
Sets the maximum value.
override bool MinIncluded
DateTime? Max
Maximum value of parameter
override void ContractUpdated(Contract Contract)
Called when the contract has been updated.
Contains information about a string parameter
override object MaxIncludedControl
Control for defining if Maximum value is included or not
override object MinIncludedControl
Control for defining if Minimum value is included or not
override object MaxControl
Control for editing Maximum value
override object MinControl
Control for editing Minimum value
Generic class for properties
Helps with common XML-related tasks.
static bool TryParse(string s, out DateTime Value)
Tries to decode a string encoded DateTime.
Contains the definition of a contract
Date and Time contractual parameter
Abstract base class for contractual parameters
T? Min
Optional minimum value.
T? Max
Optional maximum value.