private void listaModelliDoubleClickRow(object sender, DoubleClickRowEventArgs e) { if (e.Row.IsDataRow && e.Row.ListObject != null && e.Row.ListObject is ModelloListaRegistrazioneContabileDTO) { var dettaglio = new DettaglioModelloContabileUI((ModelloListaRegistrazioneContabileDTO)e.Row.ListObject, _condominio, _esercizio); var parentForm = ParentForm; if (parentForm != null) dettaglio.MdiParent = parentForm.MdiParent; dettaglio.Show(); } }
private void btnNuovoClick(object sender, EventArgs e) { var dettaglio = new DettaglioModelloContabileUI(_condominio, _esercizio); var parentForm = ParentForm; if (parentForm != null) dettaglio.MdiParent = parentForm.MdiParent; dettaglio.AfterUpdate += dettaglioAfterUpdate; dettaglio.Show(); }