/[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

--- trunk/RomCheater/Docking/PIDSelector.cs	2012/06/05 02:19:13	286
+++ trunk/RomCheater/Docking/PIDSelector.cs	2012/06/05 08:52:07	287
@@ -27,6 +27,11 @@
         [Obsolete("constructor PIDSelector(IConfigPlugin plugin, int pid) is not implemented", false)]
         public PIDSelector(IConfigPlugin plugin, int pid) : this(plugin) { this.ProcessPID = pid; }
 
+
+        private void OnProcessChanged(ProcessChangedEventArgs e)
+        {
+        }
+
         #region IAcceptsProcessPID
         public int ProcessPID { get; set; }
         #endregion
@@ -34,7 +39,7 @@
         public IConfigPlugin AcceptedPlugin { get; set; }
         #endregion
         #region IAcceptsChangedProcess members
-        public BaseEventHandler<ProcessChangedEventArgs> OnSelectedProcessChanged { get; set; }
+        public event BaseEventHandler<ProcessChangedEventArgs> OnSelectedProcessChanged;
         #endregion
         
 
@@ -70,10 +75,8 @@
         {
             this.ProcessPID = Convert.ToInt32(li.SubItems[1].Text);
             //this.Close();
-            if (this.OnSelectedProcessChanged != null)
-            {
-                this.OnSelectedProcessChanged(new ProcessChangedEventArgs(this.ProcessPID));
-            }
+            if (OnSelectedProcessChanged != null)
+                OnSelectedProcessChanged(new ProcessChangedEventArgs(this.ProcessPID));
             Process SelectedProcess = Process.GetProcessById(this.ProcessPID);
             logger.Debug.WriteLine("Using Process: ({0} : {1})", SelectedProcess.Id, SelectedProcess.ProcessName);
         }

 

  ViewVC Help
Powered by ViewVC 1.1.22