ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater/PIDSelector.cs
(Generate patch)

Comparing trunk/RomCheater/PIDSelector.cs (file contents):
Revision 99 by william, Wed May 9 22:23:18 2012 UTC vs.
Revision 100 by william, Thu May 10 09:03:13 2012 UTC

# Line 91 | Line 91 | namespace RomCheater
91              large_image_list = new ImageList();
92              ListViewItem item = new ListViewItem();
93              // process
94 <            item.Text = p.ProcessInfo.MainModule.ModuleName;
94 >            item.Text = p.FileName;
95              if (p.ProcessIcon != null)
96              {
97 <                Bitmap small_image = ProcContainer.CreateIconFromProcess(p.ProcessInfo, 1);
98 <                Bitmap large_image = ProcContainer.CreateIconFromProcess(p.ProcessInfo, 2);
99 <                small_image_list.Images.Add(p.ProcessInfo.MainModule.FileName, ProcContainer.CreateIconFromProcess(p.ProcessInfo, 1));
97 >                Bitmap small_image = ProcContainer.CreateIconFromProcess(p, 1);
98 >                Bitmap large_image = ProcContainer.CreateIconFromProcess(p, 2);
99 >                small_image_list.Images.Add(p.FileName, ProcContainer.CreateIconFromProcess(p, 1));
100                  small_image_list.ImageSize = new Size(small_image.Width, small_image.Height);
101 <                large_image_list.Images.Add(p.ProcessInfo.MainModule.FileName, ProcContainer.CreateIconFromProcess(p.ProcessInfo, 2));
101 >                large_image_list.Images.Add(p.ProcessInfo.MainModule.FileName, ProcContainer.CreateIconFromProcess(p, 2));
102                  large_image_list.ImageSize = new Size(large_image.Width, large_image.Height);
103 <                item.ImageKey = p.ProcessInfo.MainModule.FileName;
103 >                item.ImageKey = p.FileName;
104              }
105              // pid
106              item.SubItems.Add(p.ProcessInfo.Id.ToString());
107              // FullPath
108 <            item.SubItems.Add(p.ProcessInfo.MainModule.FileName);
108 >            item.SubItems.Add(p.FileName);
109              if (!items.Contains(item)) items.Add(item);
110          }
111      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines