示例#1
0
文件: Form1.cs 项目: leson96/Demo
        private void btThemTK_Click(object sender, EventArgs e)
        {
            if (txtTenTK.Text == "" || txtMaukhau.Text == "" && cbNhomquyen.Text == "")
            {
                MessageBox.Show("Khong co du lieu");
                return;
            }
            TaiKhoan tk = new TaiKhoan(txtTenTK.Text, txtMaukhau.Text, cbNhomquyen.Text);

            try
            {
                cnb.AddTaiKhoan(tk);
            }
            catch (Exception p)
            {
                MessageBox.Show(p.ToString());
            }
        }