Beispiel #1
0
 public GoodsPresenter(GoodsForm goodsView)
 {
     this.goodsView = goodsView;
     foreach (ProductCategory pc in Storage.categoryCollection)
     {
         productCategoryList.Add(pc.CategoryName);
     }
 }
 public GoodsPresenter(GoodsForm goodsView)
 {
     this.goodsView = goodsView;
     foreach (ProductCategory pc in modelCategory.GetAll())
     {
         productCategoryList.Add(pc.CategoryName);
     }
 }
 public GoodsPresenter(GoodsForm goodsView)
 {
     this.goodsView = goodsView;
     var categories = service.CategoryDao.GetAll().ToList();
     foreach (ProductCategory pc in categories)
     {
         productCategoryList.Add(pc.CategoryName);
     }
 }
Beispiel #4
0
 private void goodsMenuBtn_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     var form = new GoodsAll.GoodsF.GoodsForm();
     form.MdiParent = this;
     form.Show();
 }