public void LoadAllSchoolVansSorted(ListBox list) { SchoolVanLogic logic = new SchoolVanLogic(); List <SchoolVan> allObjects = new List <SchoolVan>(); allObjects = logic.GetSchoolVansSorted(); if (allObjects.Count == 0) { throw new NoSchoolVanInSystemException("No hay Camionetas ingresadas en el sistema"); } foreach (SchoolVan item in allObjects) { list.Items.Add(item); } }