private void btnConfirmTipoReport_Click(object sender, EventArgs e) { try { IModel space = null; if (optSituazioneFornitore.Checked) { space = new ReportJobFornitoreModel(); } else if (optResocontoFornitori.Checked) { space = new ReportJobFornitoriModel(); } else if (optSituazioneCommittente.Checked) { space = new ReportJobCommittenteModel(); } else if (optResocontoCommittenti.Checked) { space = new ReportJobCommittentiModel(); } space.Model = new ReportJobDto(); AddSpace(space); panelTipoReport.Visible = false; } catch (Exception ex) { UtilityError.Write(ex); } }
private void btnConfirmTipoReport_Click(object sender, EventArgs e) { try { IModel space = null; if (optSituazioneFornitore.Checked) space = new ReportJobFornitoreModel(); else if(optResocontoFornitori.Checked) space = new ReportJobFornitoriModel(); else if (optSituazioneCommittente.Checked) space = new ReportJobCommittenteModel(); else if (optResocontoCommittenti.Checked) space = new ReportJobCommittentiModel(); space.Model = new ReportJobDto(); AddSpace(space); panelTipoReport.Visible = false; } catch (Exception ex) { UtilityError.Write(ex); } }