мелкая правка

This commit is contained in:
funa4i 2024-11-18 16:08:50 +04:00
parent 1cd02b7d2f
commit 04fdf32650

View File

@ -62,8 +62,7 @@ namespace StudentProgressRecord
{
try
{
if (string.IsNullOrWhiteSpace(textBoxSubject.Text) ||
string.IsNullOrWhiteSpace(textBoxSubject.Text))
if (string.IsNullOrWhiteSpace(textBoxSubject.Text) || checkedListBoxDir.Items.Count == 0)
{
throw new Exception("Имя не может быть пустым");
}