Esempio n. 1
0
        private void btnCreat_Click(object sender, RoutedEventArgs e)
        {
            var nd = new DANGNHAP
            {
                ID        = txtNhapID.Text,
                MatKhau   = txtNhapPassword.Password,
                NameID    = txtNhapTen.Text,
                NamSinhID = txtNhapNamSinh.Text,
                QQID      = txtNhapQQ.Text
            };

            db.DANGNHAPs.InsertOnSubmit(nd);
            db.SubmitChanges();

            MessageBox.Show("Đăng kí thành công");

            txtNhapID.Clear();
            txtNhapPassword.Clear();
            txtNhapTen.Clear();
            txtNhapNamSinh.Clear();
            txtNhapQQ.Clear();
        }
 partial void DeleteDANGNHAP(DANGNHAP instance);
 partial void UpdateDANGNHAP(DANGNHAP instance);
 partial void InsertDANGNHAP(DANGNHAP instance);