Exemplo n.º 1
0
    public void LoadContent(int customerId)
    {
        DateTime startDate = GetSalesStartDate();
        DateTime endDate   = GetSalesEndDate();

        HorizontalBarChart.Title = DateTimeHelper.GetDateRangeString(startDate, endDate);
        HorizontalBarChart.SetData(SalesProvider.GetCustomerPurchasesGroupedByProduct(customerId, startDate, endDate));
        using (CustomersProvider provider = new CustomersProvider())
            Location = provider.GetCustomerLocation(customerId);
        CustomerDetailsHolder.Visible  = true;
        EmptyDataMessageHolder.Visible = false;
    }
Exemplo n.º 2
0
 public void SetData(IEnumerable <ChartData> data)
 {
     DoughnutChart.SetData(data);
     HorizontalBarChart.SetData(data);
 }