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

Comparing trunk/RomCheater/Docking/PIDSelector.cs (file contents):
Revision 286 by william, Thu May 31 05:52:41 2012 UTC vs.
Revision 287 by william, Tue Jun 5 08:52:07 2012 UTC

# Line 27 | Line 27 | namespace RomCheater.Docking
27          [Obsolete("constructor PIDSelector(IConfigPlugin plugin, int pid) is not implemented", false)]
28          public PIDSelector(IConfigPlugin plugin, int pid) : this(plugin) { this.ProcessPID = pid; }
29  
30 +
31 +        private void OnProcessChanged(ProcessChangedEventArgs e)
32 +        {
33 +        }
34 +
35          #region IAcceptsProcessPID
36          public int ProcessPID { get; set; }
37          #endregion
# Line 34 | Line 39 | namespace RomCheater.Docking
39          public IConfigPlugin AcceptedPlugin { get; set; }
40          #endregion
41          #region IAcceptsChangedProcess members
42 <        public BaseEventHandler<ProcessChangedEventArgs> OnSelectedProcessChanged { get; set; }
42 >        public event BaseEventHandler<ProcessChangedEventArgs> OnSelectedProcessChanged;
43          #endregion
44          
45  
# Line 70 | Line 75 | namespace RomCheater.Docking
75          {
76              this.ProcessPID = Convert.ToInt32(li.SubItems[1].Text);
77              //this.Close();
78 <            if (this.OnSelectedProcessChanged != null)
79 <            {
75 <                this.OnSelectedProcessChanged(new ProcessChangedEventArgs(this.ProcessPID));
76 <            }
78 >            if (OnSelectedProcessChanged != null)
79 >                OnSelectedProcessChanged(new ProcessChangedEventArgs(this.ProcessPID));
80              Process SelectedProcess = Process.GetProcessById(this.ProcessPID);
81              logger.Debug.WriteLine("Using Process: ({0} : {1})", SelectedProcess.Id, SelectedProcess.ProcessName);
82          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines