File tree Expand file tree Collapse file tree
NodeNetworkToolkit/ValueNode Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ namespace NodeNetwork . Toolkit . ValueNode
2+ {
3+
4+ /// <summary>
5+ /// Action that should be taken based on the validation result
6+ /// </summary>
7+ public enum ValidationAction
8+ {
9+ /// <summary>
10+ /// Don't run the validation. (LatestValidation is not updated)
11+ /// </summary>
12+ DontValidate ,
13+ /// <summary>
14+ /// Run the validation, but ignore the result and assume the network is valid.
15+ /// </summary>
16+ IgnoreValidation ,
17+ /// <summary>
18+ /// Run the validation and if the network is invalid then wait until it is valid.
19+ /// </summary>
20+ WaitForValid ,
21+ /// <summary>
22+ /// Run the validation and if the network is invalid then make default(T) the current value.
23+ /// </summary>
24+ PushDefaultValue
25+ }
26+ }
Original file line number Diff line number Diff line change @@ -45,29 +45,6 @@ static ValueNodeInputViewModel()
4545 public IObservable < T > ValueChanged { get ; }
4646 #endregion
4747
48- /// <summary>
49- /// Action that should be taken based on the validation result
50- /// </summary>
51- public enum ValidationAction
52- {
53- /// <summary>
54- /// Don't run the validation. (LatestValidation is not updated)
55- /// </summary>
56- DontValidate ,
57- /// <summary>
58- /// Run the validation, but ignore the result and assume the network is valid.
59- /// </summary>
60- IgnoreValidation ,
61- /// <summary>
62- /// Run the validation and if the network is invalid then wait until it is valid.
63- /// </summary>
64- WaitForValid ,
65- /// <summary>
66- /// Run the validation and if the network is invalid then make default(T) the current value.
67- /// </summary>
68- PushDefaultValue
69- }
70-
7148 /// <summary>
7249 /// Constructs a new ValueNodeInputViewModel with the specified ValidationActions.
7350 /// The default values are carefully chosen and should probably not be changed unless you know what you are doing.
You can’t perform that action at this time.
0 commit comments