private void dispatcherTimer_Tick(object sender, EventArgs e)
 {
     List<CustomProcess> stats = new List<CustomProcess>();
     //stats = CustomProcess.PopulateStats();
     CustomProcess.PopulateStats();
     //statsSource.ItemsSource = Sorter.SortProcesses(stats, sortMethod);
     statsSource.ItemsSource = Sorter.SortProcesses(CustomProcess.Stats, sortMethod);
 }
 private void statsSource_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     try
     {
         CustomProcess customProcess = (CustomProcess)statsSource.SelectedItems[0];
         processNameQuery.Text = customProcess.Name;
     }
     catch (Exception exp)
     {
         Console.WriteLine($"Something went wrong");
     }
 }