Esempio n. 1
0
 private void InitFormManager(SingletonManager <Form> formManager)
 {
     formManager.ClearInstances();
     formManager.Set("FormPerson", () => new FormPerson());
     formManager.Set("FormDestination", () => new FormDestination());
     formManager.Set("FormSupplier", () => new FormSupplier());
     formManager.Set("FormMaterial", () => new FormMaterial());
     formManager.Set("FormWarehouse", () => new FormWarehouse(this.comboBoxWarehouse, this.panelRight, this.treeViewLeft));
     formManager.Set("FormStorageArea", () => new FormStorageArea());
     formManager.Set("FormStorageLocation", () => new FormStorageLocation());
     formManager.Set("FormSupply", () => new FormSupply());
     formManager.Set("FormPackage", () => new FormPackage());
     formManager.Set("FormSafetyStock0", () => new FormSafetyStock(0));
     formManager.Set("FormSafetyStock1", () => new FormSafetyStock(1));
     formManager.Set("FormWarehouseEntry", () => new FormWarehouseEntry(ToInspectionNoteSelectIDsCallback, ToInspectionNoteSearchNoCallback));
     formManager.Set("FormInspectionNote", () => new FormInspectionNote());
     formManager.Set("FormPutAwayNote", () => new FormPutAwayNote());
     formManager.Set("FormTransferOrder", () => new FormTransferOrder.FormTransferOrder());
     formManager.Set("FormDeliverOrder", () => new FormDeliverOrder());
     formManager.Set("FormStockRecord", () => new FormStockRecord());
     formManager.Set("FormStockTakingOrder", () => new FormStockTakingOrder());
     formManager.Set("FormTransferRecord", () => new FormTransferRecord());
     formManager.Set("FormSalaryType", () => new FromSalary.FormSalaryType());
     formManager.Set("FormSalaryPeriod", () => new FromSalary.FormSalaryPeriod());
     formManager.Set("FormPersonSalary", () => new FromSalary.FormPersonSalary());
     formManager.Set("FormPayNote", () => new FromSalary.FormPayNote());
     formManager.Set("FormAccountTitle", () => new FormAcccount.FormAccountTitle());
     formManager.Set("FormTax", () => new FormAcccount.FormTax());
     formManager.Set("FormAccountRecord", () => new FormAcccount.FormAccountRecord());
     formManager.Set("FormAccountPeriod", () => new FormAcccount.FormAccountPeriod());
     formManager.Set("FormSummaryNote", () => new FormSettlement.FormSummaryNote());
     formManager.Set("FormSettlementNote", () => new FormSettlement.FormSettlementNote());
     formManager.Set("FormInvoice", () => new FormSettlement.FormInvoice());
     formManager.Set("FormPrice", () => new FormSettlement.FormPrice());
     formManager.Set("FormReturnRecord", () => new FormReturnRecord());
 }