/[RomCheater]/trunk/RomCheater/Docking/PIDSelector.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/PIDSelector.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 196 by william, Thu May 31 05:52:41 2012 UTC revision 287 by william, Tue Jun 5 08:52:07 2012 UTC
# Line 27  namespace RomCheater.Docking Line 27  namespace RomCheater.Docking
27          [Obsolete("constructor PIDSelector(IConfigPlugin plugin, int pid) is not implemented", false)]          [Obsolete("constructor PIDSelector(IConfigPlugin plugin, int pid) is not implemented", false)]
28          public PIDSelector(IConfigPlugin plugin, int pid) : this(plugin) { this.ProcessPID = pid; }          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          #region IAcceptsProcessPID
36          public int ProcessPID { get; set; }          public int ProcessPID { get; set; }
37          #endregion          #endregion
# Line 34  namespace RomCheater.Docking Line 39  namespace RomCheater.Docking
39          public IConfigPlugin AcceptedPlugin { get; set; }          public IConfigPlugin AcceptedPlugin { get; set; }
40          #endregion          #endregion
41          #region IAcceptsChangedProcess members          #region IAcceptsChangedProcess members
42          public BaseEventHandler<ProcessChangedEventArgs> OnSelectedProcessChanged { get; set; }          public event BaseEventHandler<ProcessChangedEventArgs> OnSelectedProcessChanged;
43          #endregion          #endregion
44                    
45    
# Line 70  namespace RomCheater.Docking Line 75  namespace RomCheater.Docking
75          {          {
76              this.ProcessPID = Convert.ToInt32(li.SubItems[1].Text);              this.ProcessPID = Convert.ToInt32(li.SubItems[1].Text);
77              //this.Close();              //this.Close();
78              if (this.OnSelectedProcessChanged != null)              if (OnSelectedProcessChanged != null)
79              {                  OnSelectedProcessChanged(new ProcessChangedEventArgs(this.ProcessPID));
                 this.OnSelectedProcessChanged(new ProcessChangedEventArgs(this.ProcessPID));  
             }  
80              Process SelectedProcess = Process.GetProcessById(this.ProcessPID);              Process SelectedProcess = Process.GetProcessById(this.ProcessPID);
81              logger.Debug.WriteLine("Using Process: ({0} : {1})", SelectedProcess.Id, SelectedProcess.ProcessName);              logger.Debug.WriteLine("Using Process: ({0} : {1})", SelectedProcess.Id, SelectedProcess.ProcessName);
82          }          }

Legend:
Removed from v.196  
changed lines
  Added in v.287

  ViewVC Help
Powered by ViewVC 1.1.22