public void PCRaport_Click(object sender, EventArgs e) { NumericUpDown YearToCalc = (NumericUpDown)MainProgram.Self.TabControl.Controls.Find("num_SummaryDetailYear", true).First(); ReportingOption Report = new ReportingOption(YearToCalc.Value); Report.ShowDialog(); }
private void SaveToXML() { ReportingOption Report = new ReportingOption(2020); Report.ShowDialog(); }