private void DebugLogCallback(object sender, string e) { if (e == "_END") { IsInstalling = false; _viewController.IncrementCurrentViewIndex(); return; } Application.Current.Dispatcher.BeginInvoke((Action) delegate { if ((_installBase.ModpackMods.Count - TotalModCount) % 30 == 0) { DebugOutput = new ObservableCollection <string>(); } DebugOutput.Insert(0, e); TotalModCount--; }); }