/[RomCheater]/trunk/RomCheater/Main.cs
ViewVC logotype

Diff of /trunk/RomCheater/Main.cs

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

revision 227 by william, Sat Jun 2 15:48:25 2012 UTC revision 228 by william, Sat Jun 2 16:02:01 2012 UTC
# Line 54  namespace RomCheater Line 54  namespace RomCheater
54    
55          private void OnProcessChanged(ProcessChangedEventArgs e)          private void OnProcessChanged(ProcessChangedEventArgs e)
56          {          {
57                if (m_memsearcher.SearchInProgess)
58                {
59                    DialogResult result = MessageBox.Show("Do you want to start a new search with the selected process?", "A memory search is currently in progress", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button3);
60                    if (result != DialogResult.Yes || result != DialogResult.OK) { return; }
61                    m_memsearcher = null; //free memory used by the memory searcher
62                    m_memsearcher = new FloatingMemorySearcher();
63                }
64              SelectedProcess = Process.GetProcessById(e.ProcessID);              SelectedProcess = Process.GetProcessById(e.ProcessID);
65              m_RamDump.AcceptedProcess = SelectedProcess;              m_RamDump.AcceptedProcess = SelectedProcess;
66              m_RamDump.AcceptedPlugin = this.ConfigPlugin;              m_RamDump.AcceptedPlugin = this.ConfigPlugin;
# Line 68  namespace RomCheater Line 75  namespace RomCheater
75          #region Dock Support          #region Dock Support
76          private IDockContent GetContentFromPersistString(string persistString)          private IDockContent GetContentFromPersistString(string persistString)
77          {          {
78              if (persistString == typeof(FloatingLogWindow).ToString())              if (persistString == typeof(FloatingLogWindow).ToString()) { return m_LogWindow; }
79              {              if (persistString == typeof(FloatingRamDumperDialog).ToString()) { return m_RamDump; }
80                  return m_LogWindow;              if (persistString == typeof(PIDSelector).ToString()) { return m_PIDSelector; }
81              }              if (persistString == typeof(FloatingMemoryView).ToString()) { return m_memoryview; }
82              //if (persistString == typeof(FloatingAboutBox).ToString())              if (persistString == typeof(FloatingDataTypeConverter).ToString()) { return m_typeconverter; }
83              //{              if (persistString == typeof(FloatingMemorySearcher).ToString()) { return m_memsearcher; }
84              //    return m_AboutBox;              else { return null; }
             //}  
             if (persistString == typeof(FloatingRamDumperDialog).ToString())  
             {  
                 return m_RamDump;  
             }  
             if (persistString == typeof(PIDSelector).ToString())  
             {  
                 return m_PIDSelector;  
             }  
             if (persistString == typeof(FloatingMemoryView).ToString())  
             {  
                 return m_memoryview;  
             }  
             if (persistString == typeof(FloatingDataTypeConverter).ToString())  
             {  
                 return m_typeconverter;  
             }  
             if (persistString == typeof(FloatingMemorySearcher).ToString())  
             {  
                 return m_memsearcher;  
             }  
             else  
             {  
                 // not sure if this is appropriate  
                 return null;  
             }  
85          }          }
86          public void SetupDocks()          public void SetupDocks()
87          {          {

Legend:
Removed from v.227  
changed lines
  Added in v.228

  ViewVC Help
Powered by ViewVC 1.1.22