fix(lab1) : fix LimitedText component

This commit is contained in:
Zakharov_Rostislav 2024-10-21 12:02:15 +04:00
parent d99c4b78a0
commit ae6be99934
2 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,7 @@
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Version>$(VersionPrefix)1.0.1</Version>
</PropertyGroup>
<ItemGroup>

View File

@ -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;
}
}