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); } }
private void btnSummary_Click(object sender, EventArgs e) { SummaryForm of; if (rdbtnSummaryEventFree.Checked) { of = new SummaryForm(Data.ShowList.freeEvents); of.Show(); } if (rdbtnSummaryEventFull.Checked) { of = new SummaryForm(Data.ShowList.fullEvents); of.Show(); } if (rdbtnSummaryHistory.Checked) { of = new SummaryForm(Data.ShowList.passedEvents); of.Show(); } }