private void btnIncassi_Click(object sender, EventArgs e) { try { bool saved = Save(); if (saved) { var obj = (FatturaVenditaDto)Model; var space = new Incasso.IncassoView(obj); space.Title = "INCASSI | FATTURA " + BusinessLogic.Fattura.GetCodifica(obj); Workspace.AddSpace(space); } } catch (Exception ex) { UtilityError.Write(ex); } }
private void btnIncassi_Click(object sender, EventArgs e) { try { bool saved = Save(); if (saved) { var obj = (CommittenteDto)Model; var anagraficaCommittente = obj.AnagraficaCommittente; if (anagraficaCommittente != null) { var space = new Incasso.IncassoView(obj); space.Title = "INCASSI | COMMITTENTE " + BusinessLogic.Committente.GetCodifica(anagraficaCommittente); Workspace.AddSpace(space); } } } catch (Exception ex) { UtilityError.Write(ex); } }