Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
BooleanParameterInfo.cs
1
using
LegalLab.Models.Design
;
2
using
System;
3
using
System.Windows.Controls;
4
using
Waher.Content
;
5
using
Waher.Networking.XMPP.Contracts
;
6
7
namespace
LegalLab.Models.Legal.Items.Parameters
8
{
12
public
class
BooleanParameterInfo
:
ParameterInfo
13
{
22
public
BooleanParameterInfo
(
Contract
Contract
,
BooleanParameter
Parameter
,
Control
Control
,
DesignModel
DesignModel
,
Property
<
ParameterInfo
[]> Parameters)
23
: base(
Contract
,
Parameter
,
Control
,
DesignModel
, Parameters)
24
{
25
}
26
28
public
override
void
SetValue
(
string
Value
)
29
{
30
this.Value =
string
.IsNullOrEmpty(
Value
) ? (
bool
?)
null
:
31
CommonTypes
.
TryParse
(
Value
, out
bool
b) ? b :
throw
new
ArgumentException(
"Invalid boolean value."
, nameof(
Value
));
32
}
33
}
34
}
LegalLab.Models.Design.DesignModel
Contract model
Definition:
DesignModel.cs:42
LegalLab.Models.Legal.Items.ParameterInfo
Contains information about a parameter
Definition:
ParameterInfo.cs:19
LegalLab.Models.Legal.Items.ParameterInfo.Value
virtual object Value
Parameter value
Definition:
ParameterInfo.cs:134
LegalLab.Models.Legal.Items.ParameterInfo.Control
Control Control
Generated control.
Definition:
ParameterInfo.cs:85
LegalLab.Models.Legal.Items.Parameters.BooleanParameterInfo
Contains information about a boolean parameter
Definition:
BooleanParameterInfo.cs:13
LegalLab.Models.Legal.Items.Parameters.BooleanParameterInfo.SetValue
override void SetValue(string Value)
Sets the value.
Definition:
BooleanParameterInfo.cs:28
LegalLab.Models.Legal.Items.Parameters.BooleanParameterInfo.BooleanParameterInfo
BooleanParameterInfo(Contract Contract, BooleanParameter Parameter, Control Control, DesignModel DesignModel, Property< ParameterInfo[]> Parameters)
Contains information about a boolean parameter
Definition:
BooleanParameterInfo.cs:22
LegalLab.Models.Property
Generic class for properties
Definition:
Property.cs:11
Waher.Content.CommonTypes
Helps with parsing of commong data types.
Definition:
CommonTypes.cs:13
Waher.Content.CommonTypes.TryParse
static bool TryParse(string s, out double Value)
Tries to decode a string encoded double.
Definition:
CommonTypes.cs:46
Waher.Networking.XMPP.Contracts.BooleanParameter
Boolean contractual parameter
Definition:
BooleanParameter.cs:16
Waher.Networking.XMPP.Contracts.Contract
Contains the definition of a contract
Definition:
Contract.cs:22
Waher.Networking.XMPP.Contracts.Parameter
Abstract base class for contractual parameters
Definition:
Parameter.cs:17
LegalLab.Models.Design
Definition:
NonScrollingTextEditor.cs:8
LegalLab.Models.Legal.Items.Parameters
Definition:
BooleanParameterInfo.cs:8
Waher.Content
Definition:
Array.cs:6
Waher.Networking.XMPP.Contracts
Definition:
Attachment.cs:4
LegalLab
LegalLab
Models
Legal
Items
Parameters
BooleanParameterInfo.cs
Generated by
1.9.5