示例#1
0
 private void Form2_Load(object sender, EventArgs e)
 {
     dgwProducts.DataSource = _productDal.GetAll();
 }
示例#2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            ProductDal productDal = new ProductDal();

            dgwProducts.DataSource = productDal.GetAll();
        }