コード例 #1
0
 private void DisplayThreads()
 {
     if (_selectedProcess != null && _selectedProcess.IsActive == "Active")
     {
         var threads = new List <SystemProcessThread>();
         foreach (var thread in _selectedProcess.ProcessThreads())
         {
             threads.Add(new SystemProcessThread((ProcessThread)thread));
         }
         ProcessThreads = new ObservableCollection <SystemProcessThread>(threads);
     }
     else
     {
         ProcessThreads = new ObservableCollection <SystemProcessThread>();
     }
 }