/[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/05/27 23:34:33	149
+++ trunk/RomCheater/Docking/PIDSelector.cs	2012/05/27 23:59:22	150
@@ -31,19 +31,26 @@
 
 
         public new void Show() { this.Show(null); }
-        public new void Show(IWin32Window owner) { this.PreInitShow(owner); }
-        public new DialogResult ShowDialog() { return this.ShowDialog(null); }
-        public new DialogResult ShowDialog(IWin32Window owner) { return this.PreInitDialog(owner); }
-        private void PreInitShow(IWin32Window owner)
+        //public new void Show(IWin32Window owner) { this.PreInitShow(owner); }
+        public new void Show(DockPanel panel) { this.PreInitShow(panel); }
+        //public new DialogResult ShowDialog() { return this.ShowDialog(null); }
+        //public new DialogResult ShowDialog(IWin32Window owner) { return this.PreInitDialog(owner); }
+        //private void PreInitShow(IWin32Window owner)
+        //{
+        //    if (!this.RefreshList()) { MessageBox.Show(string.Format("Could not find any Processes for plugin {0}.  Please start an instance of one.",plugin.ToString())); }
+        //    else { if (owner == null) { base.Show(); } else { base.Show(owner); } }
+        //}
+        private void PreInitShow(DockPanel panel)
         {
-            if (!this.RefreshList()) { MessageBox.Show(string.Format("Could not find any Processes for plugin {0}.  Please start an instance of one.",plugin.ToString())); }
-            else { if (owner == null) { base.Show(); } else { base.Show(owner); } }
-        }
-        private DialogResult PreInitDialog(IWin32Window owner)
-        {
-            if (!this.RefreshList()) { MessageBox.Show(string.Format("Could not find any Processes for plugin {0}.  Please start an instance of one.", plugin.ToString())); return DialogResult.Cancel; }
-            else { if (owner == null) { return base.ShowDialog(); } else { return base.ShowDialog(owner); } }
+            //if (panel == null) return;
+            if (!this.RefreshList()) { MessageBox.Show(string.Format("Could not find any Processes for plugin {0}.  Please start an instance of one.", plugin.ToString())); }
+            else { if (panel == null) { base.Show(); } else { base.Show(panel); } }
         }
+        //private DialogResult PreInitDialog(IWin32Window owner)
+        //{
+        //    if (!this.RefreshList()) { MessageBox.Show(string.Format("Could not find any Processes for plugin {0}.  Please start an instance of one.", plugin.ToString())); return DialogResult.Cancel; }
+        //    else { if (owner == null) { return base.ShowDialog(); } else { return base.ShowDialog(owner); } }
+        //}
         private void btnLargeIcon_Click(object sender, EventArgs e) { this.lstProcessList.View = View.LargeIcon; }
         private void btnDetails_Click(object sender, EventArgs e) { this.lstProcessList.View = View.Details; }
         private void btnSmallIcon_Click(object sender, EventArgs e) { this.lstProcessList.View = View.SmallIcon; }

 

  ViewVC Help
Powered by ViewVC 1.1.22