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

Diff of /trunk/RomCheater/Main.cs

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

--- trunk/RomCheater/Main.cs	2013/06/20 20:01:05	754
+++ trunk/RomCheater/Main.cs	2013/06/20 20:04:53	755
@@ -39,6 +39,7 @@
 {
     public partial class Main : Form
     {
+        const string DockPanelConfig = "RomCheater-DockPanel.conf";
         private SettingSubscriber SettingsSubscriber;
         private bool m_bSaveLayout = true;
         private Process SelectedProcess = null;        
@@ -540,7 +541,7 @@
         {
             //dockPanel.SuspendLayout(true);
             //ShowDocks();
-            string configFile = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "DockPanel.config");
+            string configFile = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), DockPanelConfig);
             if (File.Exists(configFile))
             {
                 try
@@ -592,7 +593,7 @@
         private void Main_FormClosing(object sender, FormClosingEventArgs e)
         {
             SettingsSubscriber.SaveSettings();
-            string configFile = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "DockPanel.config");
+            string configFile = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), DockPanelConfig);
             if (m_bSaveLayout)
                 dockPanel.SaveAsXml(configFile);
             else if (File.Exists(configFile))

 

  ViewVC Help
Powered by ViewVC 1.1.22