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); }