Exemple #1
0
 public void ReLoadForm()
 {
     cbTheLoai.DataSource       = TheLoaiSach.laydanhsachtheloai();
     dtgDanhSachSach.DataSource = sm.LayDanhSachSach();
     txtMaSach.Text             = sm.GetLastNode().ToString("MS000");
     cbNguoiTiepNhan.DataSource = nvm.LayNhanVienThuKho();
     cbNamXuatBan.DataSource    = DanhSachNamXuatban();
 }
Exemple #2
0
        private void cbdsms_SelectedIndexChanged(object sender, EventArgs e)
        {
            List <Sach> ds = sm.LayDanhSachSach();

            for (int i = 0; i < ds.Count(); i++)
            {
                if (cbdsms.SelectedItem.ToString() == ds[i].MaSach)
                {
                    txtTenSach.Text = ds[i].TenSach;
                }
            }
        }
        private void buttonBackupSach_Click(object sender, EventArgs e)
        {
            SachManager sachManager = new SachManager();

            xmlGenerate.GenerateFromXML(sachManager.LayDanhSachSach());
        }
Exemple #4
0
 private void TraCuuSach_Load(object sender, EventArgs e)
 {
     dtgDanhSachSach.DataSource = sachManager.LayDanhSachSach();
 }