示例#1
0
        private void btnThem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            FrmTuyChonMatHang f = new FrmTuyChonMatHang(1);

            f.ShowDialog();
            DataTable dt = blThucPham.LayDanhSachLoaiThucPham();

            Refesh(dt);
            btnSua.Tag = null;
        }
示例#2
0
 private void btnSua_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (btnSua.Tag == null)
     {
         MessageBox.Show("Bạn chưa chọn gì cả !!");
     }
     else
     {
         FrmTuyChonMatHang f = new FrmTuyChonMatHang(2, btnSua.Tag as DataGridViewRow);
         f.ShowDialog();
         DataTable dt = blThucPham.LayDanhSachLoaiThucPham();
         Refesh(dt);
         btnSua.Tag = null;
     }
 }