public void LoadContent(int productId) { using (ProductsProvider productsProvider = new ProductsProvider()) { Contact projectManager = productsProvider.GetProjectManager(productId); Contact supportManager = productsProvider.GetSupportManager(productId); Plant plant = productsProvider.GetPlant(productId); FillPlantInfo(plant); FillSupportManagerInfo(supportManager); FillProjectManagerInfo(projectManager); } DateTime startDate = GetSalesStartDate(); DateTime endDate = GetSalesEndDate(); RevenueByChannelChart.SetData(SalesProvider.GetSalesGroupedByChannel(productId, startDate, endDate)); RevenueByRegionChart.SetData(SalesProvider.GetSalesGroupedByRegion(productId, startDate, endDate)); RevenueBySectorChart.SetData(SalesProvider.GetSalesGroupedBySector(productId, startDate, endDate)); }