private void popupWindowShowActionActPrecs_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { IObjectSpace objectSpace = Application.CreateObjectSpace(); ProductoFiltroPrecio fil = objectSpace.FindObject <ProductoFiltroPrecio>(null); if (fil == null) { fil = objectSpace.CreateObject <ProductoFiltroPrecio>(); } e.View = Application.CreateDetailView(objectSpace, "ProductoFiltroPrecio_DetailView", true, fil); }
private void popupWindowShowActionActPrecs_Execute(object sender, PopupWindowShowActionExecuteEventArgs e) { ProductoFiltroPrecio dlgFil = e.PopupWindowViewCurrentObject as ProductoFiltroPrecio; IObjectSpace objectSpace = Application.CreateObjectSpace(); if (dlgFil != null) { if (dlgFil.InputFile != null) { Negocio.ActualizaPreciosFile(dlgFil, objectSpace); } else { Negocio.ActualizaPrecios(dlgFil, objectSpace); } } }