From 04fdf32650e7b5f3d19836f8865b86875f227299 Mon Sep 17 00:00:00 2001 From: funa4i Date: Mon, 18 Nov 2024 16:08:50 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BC=D0=B5=D0=BB=D0=BA=D0=B0=D1=8F=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B0=D0=B2=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- StudentProgressRecord/Forms/FormsEntity/FormSubject.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/StudentProgressRecord/Forms/FormsEntity/FormSubject.cs b/StudentProgressRecord/Forms/FormsEntity/FormSubject.cs index 455c77e..8d26e36 100644 --- a/StudentProgressRecord/Forms/FormsEntity/FormSubject.cs +++ b/StudentProgressRecord/Forms/FormsEntity/FormSubject.cs @@ -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("Имя не может быть пустым"); }