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

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

            Refesh(dt);
            btnSua.Tag = null;
        }
Exemple #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
     {
         FrmTuyChonLoaiMatHang f = new FrmTuyChonLoaiMatHang(2, btnSua.Tag as DataGridViewRow);
         f.ShowDialog();
         DataTable dt = blLoaiThucPham.LayDanhSachLoaiThucPham();
         Refesh(dt);
         btnSua.Tag = null;
     }
 }