public void datecaller() { DateDialog start = new DateDialog("Enter Start Date"); start.ShowDialog(); date1 = start.dateselected; DateDialog end = new DateDialog("Enter End Date"); end.ShowDialog(); date2 = end.dateselected; CustomerSelectDialog custtt = new CustomerSelectDialog("Please Select Customer"); custtt.ShowDialog(); customer = custtt.custselected; GPData.ReportData(date1, date2, customer); }
public Report_Viewer() { DateDialog start = new DateDialog("Enter Start Date"); start.StartPosition = FormStartPosition.CenterScreen; start.ShowDialog(); Date.date1 = start.dateselected; DateDialog end = new DateDialog("Enter End Date"); end.StartPosition = FormStartPosition.CenterScreen; end.ShowDialog(); Date.date2 = end.dateselected; CustomerSelectDialog custtt = new CustomerSelectDialog("Please Select Customer"); custtt.StartPosition = FormStartPosition.CenterScreen; custtt.ShowDialog(); customer = custtt.custselected; InitializeComponent(); GPData.ReportData(Date.date1, Date.date2, customer); }