My application uses entity framework to pull in a small tiny set of results... It takes about 3 seconds for it to do it? Why might this be?
Start.cs
Try to replace adding individual items to listbox with AddRange
:
public void ListBoxProjectTypes()
{
IEnumerable projectTypes = projectTypeRepository.ProjectTypes;
ListBoxProjectType.Items.AddRange(projectTypes.Select(item => (object)item.Title).ToArray());
}
Or simply wrap items adding with ListBoxProjectType.BeginUpdate
and ListBoxProjectType.EndUpdate
.