private void codeButton_Click(object sender, EventArgs e) { if (HumanDB.GetHashCode(codeBox.Text) == humandb.Code) { codeBox.Text = ""; label3.Visible = false; codeBox.Visible = false; codeButton.Visible = false; exitButton.Visible = true; addButton.Visible = true; RedButton.Visible = true; DeleteButton.Visible = true; label4.Text = "РЕДАКТИРОВАНИЕ РАЗРЕШЕНО"; label4.ForeColor = Color.Green; } else { MessageBox.Show(Properties.Resources.Error_Not_True_Code, "Ошибка"); } }