Exemple #1
0
 public void LoadDataAndBindGrid()
 {
     try
     {
         materialDal = new MaterialDal();
         List <MaterialEntity> materials = materialDal.GetMaterialsByType(SysCodeConstant.MATERIAL_TYPE_COMB);
         bindingSource1.DataSource = materials;
     }
     catch (Exception ex)
     {
         MsgBox.Err(ex.Message);
     }
 }
Exemple #2
0
        public void LoadDataAndBindGrid()
        {
            List <MaterialEntity> materials = materialDal.GetMaterialsByType(SysCodeConstant.MATERIAL_TYPE_PACK);

            bindingSource1.DataSource = materials;
        }