//проверка данных пользователя private bool CheckData() { if (string.IsNullOrWhiteSpace(textBoxName.Text)) { return(false); } if (checkedListBoxFavorites.CheckedItems.Count == 0) { validateInput = TaskInputValidate.TaskFavsNotChecked; return(false); } if (checkedListBoxCommands.CheckedItems.Count == 0) { validateInput = TaskInputValidate.TaskCommandsNotChecked; return(false); } return(true); }
//проверка данных пользователя private bool CheckData() { if (string.IsNullOrWhiteSpace(textBoxName.Text)) { return false; } if (checkedListBoxFavorites.CheckedItems.Count == 0) { validateInput = TaskInputValidate.TaskFavsNotChecked; return false; } if (checkedListBoxCommands.CheckedItems.Count == 0) { validateInput = TaskInputValidate.TaskCommandsNotChecked; return false; } return true; }