示例#1
0
 private void AuthorAuthorization(string login, string password)
 {
     if (checkBoxIsNewUser.Checked)
     {
         _logicModel.AddNewAuthor(login, password);
     }
     else
     {
         if (!_logicModel.TryToFindAuthor(login, password))
         {
             MessageBox.Show("Пользователь не найден");
             return;
         }
     }
     OpenShildForm(new EditingModeForm(this, ref _logicModel));
 }