Пример #1
0
 private void toolStripButtonxoa_Click(object sender, EventArgs e)
 {
     if (dataGridViewdanhsach.SelectedRows.Count > 0)
     {
         if (MessageBox.Show(null, "Bạn có muốn xóa không!", "Cảnh Báo", MessageBoxButtons.YesNo) == DialogResult.Yes)
         {
             database db = new database();
             db.xoadangvien(dataGridViewdanhsach.SelectedRows[0]);
             DataSet ds = new DataSet();
             ds = db.laydanhsachdangvien();
             dataGridViewdanhsach.DataSource = ds.Tables[0];
         }
     }
 }
Пример #2
0
        public formhethongquanly()
        {
            InitializeComponent();
            database db = new database();

            toolStripquanlyhoso.Visible  = false;
            comboBoxloc.Visible          = false;
            textBoxtimkiem.Visible       = false;
            buttontimkiem.Visible        = false;
            buttonendpre.Visible         = false;
            buttonpre.Visible            = false;
            buttonnext.Visible           = false;
            buttonendnext.Visible        = false;
            labeltongtrang.Visible       = false;
            textBoxsotrang.Visible       = false;
            tabControl1.Visible          = false;
            dataGridViewdanhsach.Visible = false;
        }
Пример #3
0
        public void themdangvien()
        {
            database db = new database();

            db.themdangvien(anhdaidien, sothe, hoten, ngaysinh, gioitinh, cmnd, ngaychinhthuc, noivaochinhthuc, ngayvaodubi, noivaodubi, quequan, noisinh, matg, madt, matdhv, solylich, bidanh, nghenghiep, Macb, chucdanh, choohiennay, thongtinthem, trangthai);
        }