Skip to content

Commit c626ad1

Browse files
committed
pulled enum out that had restricted access via generic type
1 parent 4ddc3d4 commit c626ad1

2 files changed

Lines changed: 26 additions & 23 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
}

NodeNetworkToolkit/ValueNode/ValueNodeInputViewModel.cs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)