void CreateCollectionEditors() { CellsHelper.CreateCollectionEditor <Customer>(CellsKind.CustomerName, Invoice, source.Customers, x => x.Name); CellsHelper.CreateCollectionEditor <Employee>(CellsKind.EmployeeName, Invoice, source.Employees, x => x.FullName); UpdateCollectionEditors(); }
void UpdateCollectionEditors() { CellsHelper.RemoveEditor(CellsKind.CustomerStoreName, Invoice); CellsHelper.CreateCollectionEditor <CustomerStore>(CellsKind.CustomerStoreName, Invoice, source.CustomerStores, x => x.City); }
void UpdateOrderItemEditors() { CellsHelper.RemoveAllEditors("B23:M23", Invoice); CellsHelper.GenerateEditors(CellsHelper.OrderItemCells, Invoice); CellsHelper.CreateCollectionEditor <Product>(CellsKind.ProductDescription, Invoice, source.Products, x => x.Name); }