private void registrate_btn_Click(object sender, EventArgs e) { //label2.Text = encryption.VerifyHashedPassword(hash, password_txtBtn.Text).ToString(); if (!string.IsNullOrWhiteSpace(email_txtBtn.Text) && !string.IsNullOrWhiteSpace(fnane_txtBtn.Text) && !string.IsNullOrWhiteSpace(lname_txtBtn.Text) && !string.IsNullOrWhiteSpace(login_txtBox.Text) && !string.IsNullOrWhiteSpace(password_txtBtn.Text)) { Error res = TransactionScripts.createUser(login_txtBox.Text, fnane_txtBtn.Text, lname_txtBtn.Text, email_txtBtn.Text, password_txtBtn.Text); if (!res.error) { DialogResult result = MessageBox.Show( res.message, "Успешно", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1); authForm.Show(); this.Close(); } else { DialogResult result = MessageBox.Show( res.message, "Не успешно", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1); } } }