Пример #1
0
 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();
 }
Пример #2
0
 void UpdateCollectionEditors()
 {
     CellsHelper.RemoveEditor(CellsKind.CustomerStoreName, Invoice);
     CellsHelper.CreateCollectionEditor <CustomerStore>(CellsKind.CustomerStoreName, Invoice, source.CustomerStores, x => x.City);
 }
Пример #3
0
 void UpdateOrderItemEditors()
 {
     CellsHelper.RemoveAllEditors("B23:M23", Invoice);
     CellsHelper.GenerateEditors(CellsHelper.OrderItemCells, Invoice);
     CellsHelper.CreateCollectionEditor <Product>(CellsKind.ProductDescription, Invoice, source.Products, x => x.Name);
 }