コード例 #1
0
ファイル: Frmtknangcao.cs プロジェクト: theguy01/QLThuVien
 private void btnChiTiet_Click(object sender, EventArgs e)
 {
     try
     {
         FrmCapNhatsach frm = new FrmCapNhatsach();
         frm.selectedID = Convert.ToInt32(dgvListTaiLieu.SelectedCells[0].OwningRow.Cells["ID"].Value);
         frm.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
コード例 #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     try
     {
         FrmCapNhatsach frm = new FrmCapNhatsach();
         frm.selectedID = Convert.ToInt32(dgvListTaiLieu.SelectedCells[0].OwningRow.Cells["ID"].Value);
         frm.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }