16 |
: this() |
: this() |
17 |
{ |
{ |
18 |
this.ProcessInfo = process; |
this.ProcessInfo = process; |
19 |
string fname = ThreadControl.GetProcessFilename(process); |
FileInfo fi = null; |
20 |
FileInfo fi = new FileInfo(fname); |
string fname = ""; |
21 |
|
try |
22 |
|
{ |
23 |
|
fname = ProcessModeleInfoEx.GetMainModulePath(process); |
24 |
|
fi = new FileInfo(fname); |
25 |
|
} |
26 |
|
catch (Exception ex) |
27 |
|
{ |
28 |
|
throw; |
29 |
|
} |
30 |
this.FileName = fi.FullName; |
this.FileName = fi.FullName; |
31 |
this.Name = fi.Name; |
this.Name = fi.Name; |
32 |
this.CreateProcessIcon(4); |
this.CreateProcessIcon(4); |
35 |
: this() |
: this() |
36 |
{ |
{ |
37 |
this.ProcessInfo = process; this.ProcessIcon = icon.ToBitmap(); |
this.ProcessInfo = process; this.ProcessIcon = icon.ToBitmap(); |
38 |
string fname = ThreadControl.GetProcessFilename(process); |
string fname = ProcessModeleInfoEx.GetMainModulePath(process); |
39 |
FileInfo fi = new FileInfo(fname); |
FileInfo fi = new FileInfo(fname); |
40 |
this.FileName = fi.FullName; |
this.FileName = fi.FullName; |
41 |
this.Name = fi.Name; |
this.Name = fi.Name; |
44 |
: this() |
: this() |
45 |
{ |
{ |
46 |
this.ProcessInfo = process; this.ProcessIcon = icon; |
this.ProcessInfo = process; this.ProcessIcon = icon; |
47 |
string fname = ThreadControl.GetProcessFilename(process); |
string fname = ProcessModeleInfoEx.GetMainModulePath(process); |
48 |
FileInfo fi = new FileInfo(fname); |
FileInfo fi = new FileInfo(fname); |
49 |
this.FileName = fi.FullName; |
this.FileName = fi.FullName; |
50 |
this.Name = fi.Name; |
this.Name = fi.Name; |