Example #1
0
        public static List <DevAVDataItem> GetSales()
        {
            List <DevAVDataItem> list = new List <DevAVDataItem>(15);
            int prevYear = DateTime.Now.Year - 1;

            list.Add(DevAVDataItem.CreateByYearRegionSales(prevYear - 2, "Asia", 4.2372M));
            list.Add(DevAVDataItem.CreateByYearRegionSales(prevYear - 2, "Australia", 1.7871M));
            list.Add(DevAVDataItem.CreateByYearRegionSales(prevYear - 2, "Europe", 3.0884M));
            list.Add(DevAVDataItem.CreateByYearRegionSales(prevYear - 2, "North America", 3.4855M));
            list.Add(DevAVDataItem.CreateByYearRegionSales(prevYear - 2, "South America", 1.6027M));

            list.Add(DevAVDataItem.CreateByYearRegionSales(prevYear - 1, "Asia", 4.7685M));
            list.Add(DevAVDataItem.CreateByYearRegionSales(prevYear - 1, "Australia", 1.9576M));
            list.Add(DevAVDataItem.CreateByYearRegionSales(prevYear - 1, "Europe", 3.3579M));
            list.Add(DevAVDataItem.CreateByYearRegionSales(prevYear - 1, "North America", 3.7477M));
            list.Add(DevAVDataItem.CreateByYearRegionSales(prevYear - 1, "South America", 1.8237M));

            list.Add(DevAVDataItem.CreateByYearRegionSales(prevYear, "Asia", 5.2890M));
            list.Add(DevAVDataItem.CreateByYearRegionSales(prevYear, "Australia", 2.2727M));
            list.Add(DevAVDataItem.CreateByYearRegionSales(prevYear, "Europe", 3.7257M));
            list.Add(DevAVDataItem.CreateByYearRegionSales(prevYear, "North America", 4.1825M));
            list.Add(DevAVDataItem.CreateByYearRegionSales(prevYear, "South America", 2.1172M));

            return(list);
        }
Example #2
0
        public static DevAVDataItem CreateByYearRegionSales(int year, string region, decimal sales)
        {
            DevAVDataItem item = new DevAVDataItem();

            item.Year   = year;
            item.Region = region;
            item.Sales  = sales;
            return(item);
        }