Exemple #1
0
        private void btdangky_Click(object sender, EventArgs e)
        {
            bool f = data1.Dangky(txtusername.Text, txtpassword.Text, txthoten.Text, txtpass2.Text);

            if (f == true)
            {
                MessageBox.Show("Đăng ký thành công!");
                this.Close();
            }
            else
            {
                MessageBox.Show("Đã có lỗi! Đăng ký thất bại!");
            }
        }