/// <summary> /// Adds a process to the ObservableCollection of Processes. /// </summary> private void AddProcess(System.Diagnostics.Process process) { var model = new Process(process); Application.Current.Dispatcher.Invoke(() => { ProcessModels.Add(process.Id, model); }); }