Ejemplo n.º 1
0
        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            frm_capnhat _them = new frm_capnhat();

            _them.them = false;
            _them.ShowDialog();
        }
Ejemplo n.º 2
0
 private void toolStripButton2_Click(object sender, EventArgs e)
 {
     if (sach != null)
     {
         frm_capnhat sua = new frm_capnhat();
         sua.them = false;
         sua.sach = this.sach;
         sua.ShowDialog();
         DataTable dulieu = dt.sqlLayDuLieu("PSP_ThongKeSachCon");
         dgvSach.DataSource = dulieu;
         this.sach          = null;
     }
     else
     {
         MessageBox.Show("Chưa chọn sách cần sửa", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }