minor modified input element verifying logic
This commit is contained in:
1 parent
2c9ef4e24c
commit
8813fddfac
7 files changed
+35
No files matched your search
@@ -198,6 +198,11 @@ namespace HandyControl.Controls
|
|||||||
{
|
{
|
||||||
SetCurrentValue(ErrorStrProperty, Validation.GetErrors(this)[0].ErrorContent);
|
SetCurrentValue(ErrorStrProperty, Validation.GetErrors(this)[0].ErrorContent);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SetCurrentValue(IsErrorProperty, ValueBoxes.FalseBox);
|
||||||
|
SetCurrentValue(ErrorStrProperty, default(string));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return !isError;
|
return !isError;
|
||||||
|
|||||||
@@ -370,6 +370,11 @@ namespace HandyControl.Controls
|
|||||||
{
|
{
|
||||||
SetCurrentValue(ErrorStrProperty, Validation.GetErrors(this)[0].ErrorContent);
|
SetCurrentValue(ErrorStrProperty, Validation.GetErrors(this)[0].ErrorContent);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SetCurrentValue(IsErrorProperty, ValueBoxes.FalseBox);
|
||||||
|
SetCurrentValue(ErrorStrProperty, default(string));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return !isError;
|
return !isError;
|
||||||
|
|||||||
@@ -166,6 +166,11 @@ namespace HandyControl.Controls
|
|||||||
{
|
{
|
||||||
SetCurrentValue(ErrorStrProperty, Validation.GetErrors(this)[0].ErrorContent);
|
SetCurrentValue(ErrorStrProperty, Validation.GetErrors(this)[0].ErrorContent);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SetCurrentValue(IsErrorProperty, ValueBoxes.FalseBox);
|
||||||
|
SetCurrentValue(ErrorStrProperty, default(string));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return !isError;
|
return !isError;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -440,6 +440,11 @@ namespace HandyControl.Controls
|
|||||||
{
|
{
|
||||||
SetCurrentValue(ErrorStrProperty, Validation.GetErrors(this)[0].ErrorContent);
|
SetCurrentValue(ErrorStrProperty, Validation.GetErrors(this)[0].ErrorContent);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SetCurrentValue(IsErrorProperty, ValueBoxes.FalseBox);
|
||||||
|
SetCurrentValue(ErrorStrProperty, default(string));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return !isError;
|
return !isError;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -271,6 +271,11 @@ namespace HandyControl.Controls
|
|||||||
{
|
{
|
||||||
SetCurrentValue(ErrorStrProperty, Validation.GetErrors(this)[0].ErrorContent);
|
SetCurrentValue(ErrorStrProperty, Validation.GetErrors(this)[0].ErrorContent);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SetCurrentValue(IsErrorProperty, ValueBoxes.FalseBox);
|
||||||
|
SetCurrentValue(ErrorStrProperty, default(string));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return !isError;
|
return !isError;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -125,6 +125,11 @@ namespace HandyControl.Controls
|
|||||||
{
|
{
|
||||||
SetCurrentValue(ErrorStrProperty, Validation.GetErrors(this)[0].ErrorContent);
|
SetCurrentValue(ErrorStrProperty, Validation.GetErrors(this)[0].ErrorContent);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SetCurrentValue(IsErrorProperty, ValueBoxes.FalseBox);
|
||||||
|
SetCurrentValue(ErrorStrProperty, default(string));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return !isError;
|
return !isError;
|
||||||
|
|||||||
@@ -408,6 +408,11 @@ namespace HandyControl.Controls
|
|||||||
{
|
{
|
||||||
SetCurrentValue(ErrorStrProperty, Validation.GetErrors(this)[0].ErrorContent);
|
SetCurrentValue(ErrorStrProperty, Validation.GetErrors(this)[0].ErrorContent);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SetCurrentValue(IsErrorProperty, ValueBoxes.FalseBox);
|
||||||
|
SetCurrentValue(ErrorStrProperty, default(string));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return !isError;
|
return !isError;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user