private void button1_Click(object sender, EventArgs e) { string userName = richTextBox1.Text; string password = richTextBox2.Text; string cpassword = richTextBox3.Text; if (InfoCheck(userName, password, cpassword) == 0) { SqlClass.NonQuery("insert into account(userName,password) values('" + userName + "','" + Encrypt.MD5Encrypt32(password) + "')"); } }