/[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 754 by william, Tue Jun 18 19:18:05 2013 UTC revision 755 by william, Thu Jun 20 20:04:53 2013 UTC
# Line 39  namespace RomCheater Line 39  namespace RomCheater
39  {  {
40      public partial class Main : Form      public partial class Main : Form
41      {      {
42            const string DockPanelConfig = "RomCheater-DockPanel.conf";
43          private SettingSubscriber SettingsSubscriber;          private SettingSubscriber SettingsSubscriber;
44          private bool m_bSaveLayout = true;          private bool m_bSaveLayout = true;
45          private Process SelectedProcess = null;                  private Process SelectedProcess = null;        
# Line 540  namespace RomCheater Line 541  namespace RomCheater
541          {          {
542              //dockPanel.SuspendLayout(true);              //dockPanel.SuspendLayout(true);
543              //ShowDocks();              //ShowDocks();
544              string configFile = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "DockPanel.config");              string configFile = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), DockPanelConfig);
545              if (File.Exists(configFile))              if (File.Exists(configFile))
546              {              {
547                  try                  try
# Line 592  namespace RomCheater Line 593  namespace RomCheater
593          private void Main_FormClosing(object sender, FormClosingEventArgs e)          private void Main_FormClosing(object sender, FormClosingEventArgs e)
594          {          {
595              SettingsSubscriber.SaveSettings();              SettingsSubscriber.SaveSettings();
596              string configFile = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "DockPanel.config");              string configFile = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), DockPanelConfig);
597              if (m_bSaveLayout)              if (m_bSaveLayout)
598                  dockPanel.SaveAsXml(configFile);                  dockPanel.SaveAsXml(configFile);
599              else if (File.Exists(configFile))              else if (File.Exists(configFile))

Legend:
Removed from v.754  
changed lines
  Added in v.755

  ViewVC Help
Powered by ViewVC 1.1.22