public void LoadShops(AreaInfo area, TabPage tp) { IList<ShopInfo> shops = area.AreaShops.Where(x => x.IsCenter == false).ToList(); GridBuilder<ShopInfo> g = new GridBuilder<ShopInfo>(shops, new Size(100, 100), tp, 10, 20, 20); g.OnAddItem += new GridBuilder<ShopInfo>.AddItem(g_OnAddItem); g.BuildButtons(); }
public void AddArea(string areaName) { AreaInfo area = new AreaInfo(); area.AreaID = Guid.NewGuid(); area.AreaName = areaName; area.DeleteFlag = false; Reposi.Add<AreaInfo>(area); }