Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
RangedParameterInfo.cs
2using System.Windows.Controls;
4
6{
10 public abstract class RangedParameterInfo : ParameterInfo
11 {
12 private readonly Property<bool> minIncluded;
13 private readonly Property<bool> maxIncluded;
14
15 private readonly Control minControl;
16 private readonly Control minIncludedControl;
17 private readonly Control maxControl;
18 private readonly Control maxIncludedControl;
19
34 : base(Contract, Parameter, Control, DesignModel, Parameters)
35 {
36 this.minIncluded = new Property<bool>(nameof(this.MinIncluded), false, this);
37 this.maxIncluded = new Property<bool>(nameof(this.MaxIncluded), false, this);
38
39 this.minControl = MinControl;
40 this.minIncludedControl = MinIncludedControl;
41 this.maxControl = MaxControl;
42 this.maxIncludedControl = MaxIncludedControl;
43 }
44
48 public virtual bool MinIncluded
49 {
50 get => this.minIncluded.Value;
51 set
52 {
53 this.minIncluded.Value = value;
54 this.Revalidate();
55 }
56 }
57
61 public virtual bool MaxIncluded
62 {
63 get => this.maxIncluded.Value;
64 set
65 {
66 this.maxIncluded.Value = value;
67 this.Revalidate();
68 }
69 }
70
74 public override object MinControl => this.minControl;
75
79 public override object MinIncludedControl => this.minIncludedControl;
80
84 public override object MaxControl => this.maxControl;
85
89 public override object MaxIncludedControl => this.maxIncludedControl;
90
95 public abstract void SetMin(string Value);
96
101 public abstract void SetMax(string Value);
102 }
103}
Contains the definition of a contract
Definition: Contract.cs:22
Abstract base class for contractual parameters
Definition: Parameter.cs:17