private void SolverAuthorization(string login, string password) { if (checkBoxIsNewUser.Checked) { _logicModel.AddNewSolver(login, password); } else { if (!_logicModel.TryToFindSolver(login, password)) { MessageBox.Show("Пользователь не найден"); return; } } OpenShildForm(new PassingModeForm(this, ref _logicModel)); }