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

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

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

revision 811 by william, Mon Jun 17 09:31:52 2013 UTC revision 812 by william, Tue Apr 15 14:52:10 2014 UTC
# Line 28  using RomCheater.PluginFramework.Events; Line 28  using RomCheater.PluginFramework.Events;
28  using System.Management;  using System.Management;
29  using System.Reflection;  using System.Reflection;
30  using RomCheater.Core;  using RomCheater.Core;
31    using Enterprise.Logging;
32    
33  namespace RomCheater.Docking  namespace RomCheater.Docking
34  {  {
# Line 133  namespace RomCheater.Docking Line 134  namespace RomCheater.Docking
134              txtstatus_Pid.Text = SelectedProcess.Id.ToString();              txtstatus_Pid.Text = SelectedProcess.Id.ToString();
135              txtstatus_Filename.Text = SelectedProcess.MainModule.FileName;              txtstatus_Filename.Text = SelectedProcess.MainModule.FileName;
136    
137              logger.Debug.WriteLine("Using Process: ({0} : {1})", SelectedProcess.Id, SelectedProcess.ProcessName);              gLog.Debug.WriteLine("Using Process: ({0} : {1})", SelectedProcess.Id, SelectedProcess.ProcessName);
138              //this.Close();              //this.Close();
139              if (OnSelectedProcessChanged != null)              if (OnSelectedProcessChanged != null)
140                  OnSelectedProcessChanged(new ProcessChangedEventArgs(this, this.ProcessPID));                  OnSelectedProcessChanged(new ProcessChangedEventArgs(this, this.ProcessPID));
# Line 302  namespace RomCheater.Docking Line 303  namespace RomCheater.Docking
303              DialogResult result = EXESelector.ShowDialog();              DialogResult result = EXESelector.ShowDialog();
304              if (result != DialogResult.OK) return;              if (result != DialogResult.OK) return;
305              FileInfo fi = new FileInfo(EXESelector.FileName);              FileInfo fi = new FileInfo(EXESelector.FileName);
306              if (!fi.Exists) { logger.Warn.WriteLine("Cannot load and attach to non-existing exe file: {0}", fi.FullName); return; }              if (!fi.Exists) { gLog.Warn.WriteLine("Cannot load and attach to non-existing exe file: {0}", fi.FullName); return; }
307              Process p = Process.Start(fi.FullName);              Process p = Process.Start(fi.FullName);
308              this.ProcessPID = p.Id;              this.ProcessPID = p.Id;
309              isAttachingToProcess = true;              isAttachingToProcess = true;
# Line 349  namespace RomCheater.Docking Line 350  namespace RomCheater.Docking
350                      if (lstProcessList.SelectedItems[0] != null)                      if (lstProcessList.SelectedItems[0] != null)
351                      {                      {
352                          int missing_pid = this.ProcessPID;                          int missing_pid = this.ProcessPID;
353                          logger.Warn.WriteLine("Connection to selected process ({0}) has been lost...Selecting the first available process.", missing_pid);                          gLog.Warn.WriteLine("Connection to selected process ({0}) has been lost...Selecting the first available process.", missing_pid);
354                          MessageBox.Show(string.Format("Connection to selected process ({0}) has been lost...Selecting the first available process.", missing_pid), "Connection to selected process lost", MessageBoxButtons.OK, MessageBoxIcon.Warning);                          MessageBox.Show(string.Format("Connection to selected process ({0}) has been lost...Selecting the first available process.", missing_pid), "Connection to selected process lost", MessageBoxButtons.OK, MessageBoxIcon.Warning);
355                      }                                          }                    
356                      isAutoRefreshing = false;                      isAutoRefreshing = false;

Legend:
Removed from v.811  
changed lines
  Added in v.812

  ViewVC Help
Powered by ViewVC 1.1.22