private void btnReport_Click(object sender, EventArgs e) { ReportForm rf; if (rdbtnReportEventFree.Checked) { rf = new ReportForm(ShowReport.freeEvents); } else { rf = new ReportForm(ShowReport.statistics); } rf.Show(); }
private void btnOwnEvent_Click(object sender, EventArgs e) { SummaryForm of; if (rdbtnSummaryOwnEvents.Checked) { of = new SummaryForm(Data.ShowList.ownEvents, ControllerMain.ControllerInstantion.Userid); of.Show(); } else { ReportForm rf = new ReportForm(ShowReport.ownEvents, ControllerMain.ControllerInstantion.Userid); } }