Skip to content

Commit 91063ec

Browse files
Added naming and versionining convention validation.
1 parent ce4393c commit 91063ec

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Aml.Toolkit/ViewModel/AMLNodeViewModel.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,8 +452,7 @@ public HashSet<string> CAEXTagNames
452452
/// Returns the loaded children of this object.
453453
/// </summary>
454454
/// <value>The children.</value>
455-
public ObservableCollection<AMLNodeViewModel> Children => _children ??
456-
[];
455+
public ObservableCollection<AMLNodeViewModel> Children => _children ?? [];
457456

458457
/// <summary>
459458
/// </summary>

Aml.Toolkit/ViewModel/ValidationRules/NameValidationRule.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ public override ValidationResult Validate(object value, CultureInfo cultureInfo)
3434

3535
var strValue = Convert.ToString(value);
3636

37-
var (IsValid, Message) = validator.NameValidation(AssignedObject.CaexObject as CAEXObject, strValue);
37+
var (isValid, message) = validator.NameValidation(AssignedObject.CaexObject as CAEXObject, strValue);
3838

3939
if (unregister)
4040
{
4141
ValidatorService.UnRegister();
4242
}
4343

44-
return new ValidationResult(IsValid, Message);
44+
return new ValidationResult(isValid, message);
4545
}
4646

4747
#endregion Public Methods

0 commit comments

Comments
 (0)