private void TerminateProcess(object obj) { try { _selectedProcess.Terminate(); SelectedProcess = null; ProcessThreads = new ObservableCollection <SystemProcessThread>(); ProcessModules = new ObservableCollection <SystemProcessModule>(); } catch (Exception e) { MessageBox.Show("This process cannot be terminated"); } }