Manufacturer List

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 13 años
That was changed in version 1.90. In this case replace
var manufacturers = this.ManufacturerService.GetAllManufacturers();

with
var manufacturers = this.ManufacturerService.GetAllManufacturers().Take(10);
Hace 13 años
I sensed that and actully tried it, but getting error on

if (manufacturers.Count > 0) saying ">" is not allowed..

any thoughts?
Hace 13 años
Ohh, sorry. Use "var manufacturers = this.ManufacturerService.GetAllManufacturers().Take(10).ToList();"
Hace 13 años
Worked like a charm!
Thanks and keep up the superior work. Looking forward to 2.0
Hace 13 años
I had a similar list of manufacturers that were too large and just got it to show a random 10 each time by using something like:

System.Random oRand = new Random();
            int nManufs = 10;
            while (manufacturers.Count > nManufs)
                manufacturers.RemoveAt(oRand.Next(0, manufacturers.Count - 1));
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.