/[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 150 by william, Sun May 27 23:33:54 2012 UTC revision 151 by william, Mon May 28 00:17:16 2012 UTC
# Line 20  namespace RomCheater Line 20  namespace RomCheater
20  {  {
21      public partial class Main : Form      public partial class Main : Form
22      {      {
23            private Process Proc = new Process();
24          private DeserializeDockContent m_deserializeDockContent;          private DeserializeDockContent m_deserializeDockContent;
25          private FloatingLogWindow m_LogWindow = new FloatingLogWindow();          private FloatingLogWindow m_LogWindow = new FloatingLogWindow();
26          private FloatingAboutBox m_AboutBox = new FloatingAboutBox();          private FloatingAboutBox m_AboutBox = new FloatingAboutBox();
# Line 43  namespace RomCheater Line 44  namespace RomCheater
44          #endregion          #endregion
45    
46    
47            private void OnProcessChanged(object sender, ProcessChangedEventArgs e)
48            {
49                Proc = Process.GetProcessById(e.ProcessID);
50            }
51    
52          #region Dock Support          #region Dock Support
53          private IDockContent GetContentFromPersistString(string persistString)          private IDockContent GetContentFromPersistString(string persistString)
54          {          {
# Line 70  namespace RomCheater Line 76  namespace RomCheater
76              m_AboutBox = new FloatingAboutBox();              m_AboutBox = new FloatingAboutBox();
77              m_RamDump = new FloatingRamDumperDialog();              m_RamDump = new FloatingRamDumperDialog();
78              m_PIDSelector = new PIDSelector();              m_PIDSelector = new PIDSelector();
79                m_PIDSelector.OnSelectedProcessChanged += new EventHandler<ProcessChangedEventArgs>(OnProcessChanged);
80              m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);              m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
81          }          }
82          public void ShowDocks()          public void ShowDocks()
# Line 94  namespace RomCheater Line 101  namespace RomCheater
101          {          {
102              //List<Process> procs = ConfigPlugin.ValidProcessesForPlugin;              //List<Process> procs = ConfigPlugin.ValidProcessesForPlugin;
103              m_PIDSelector = new PIDSelector(ConfigPlugin);              m_PIDSelector = new PIDSelector(ConfigPlugin);
104                m_PIDSelector.OnSelectedProcessChanged += new EventHandler<ProcessChangedEventArgs>(OnProcessChanged);
105              m_PIDSelector.Show(dockPanel);              m_PIDSelector.Show(dockPanel);
106          }          }
107          #endregion          #endregion

Legend:
Removed from v.150  
changed lines
  Added in v.151

  ViewVC Help
Powered by ViewVC 1.1.22