public void LoadEvents() { this.Busy = true; try { var dictionary = new EventParser().CountEvents("reallybigfile.xml"); this.events.Clear(); foreach (var kvp in dictionary) { this.events.Add(new Event(kvp.Key, kvp.Value)); } } finally { this.Busy = false; } }