public static void GenerateSpareSalesReportByPeriod(int SpareID, DateTime dateFrom, DateTime dateTo, int WarehouseID) { ReportViewSpareSalesByPeriod r = new ReportViewSpareSalesByPeriod(dateFrom, dateTo, SpareID, WarehouseID); r.ShowDialog(); }