private void button1_Click(object sender, EventArgs e) { Button oBtn = (Button)sender; if (oBtn != null) { ReportSecOptions RepSecOpts = new ReportSecOptions(); if (rbActiveRecords.Checked) { RepSecOpts.ActiveRecords = true; } else if (rbAllRecords.Checked) { RepSecOpts.AllRecords = true; } else { RepSecOpts.DiscontinuedRecords = true; } frmViewSecurity VRep = new frmViewSecurity(1, RepSecOpts); VRep.ShowDialog(); } }
public frmViewSecurity(int RNo, ReportSecOptions Rep) { InitializeComponent(); _RepNo = RNo; _RepOpts = Rep; }