Pibd-22_Lyakhov_T_I_Lab1_Simple #2
@ -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("Имя не может быть пустым");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user