private void btnThemDauSach_Click(object sender, EventArgs e)
        {
            SuaDauSach temp = new SuaDauSach();

            temp.MaDauSach = MaDauSach;
            temp.ShowDialog();
            if (temp.SuaThanhCong == true)
            {
                LoadThongTin();
            }
        }
Esempio n. 2
0
 private void xemChiTiếtToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (lvDauSach.SelectedItems.Count > 0)
     {
         ListViewItem lvi  = lvDauSach.SelectedItems[0];
         DauSach      s    = lvi.Tag as DauSach;
         SuaDauSach   temp = new SuaDauSach();
         temp.MaDauSach = s.MaDauSach;
         temp.ShowDialog();
         if (temp.SuaThanhCong)
         {
             HienThiGiaoDienDauSach();
         }
     }
     else
     {
         MessageBox.Show("Bạn phải chọn 1 cuốn sách");
     }
 }