fix(lab1) : fix LimitedText component
This commit is contained in:
parent
d99c4b78a0
commit
ae6be99934
@ -6,6 +6,7 @@
|
||||
<UseWindowsForms>true</UseWindowsForms>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
||||
<Version>$(VersionPrefix)1.0.1</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -87,10 +87,11 @@ namespace ComponentLibrary1
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (value.Length >= Min && value.Length <= Max)
|
||||
if (value.Length < Min || value.Length > Max)
|
||||
{
|
||||
return;
|
||||
}
|
||||
textBox.Text = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user