ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater/Main.cs
(Generate patch)

Comparing trunk/RomCheater/Main.cs (file contents):
Revision 754 by william, Tue Jun 18 19:18:05 2013 UTC vs.
Revision 755 by william, Thu Jun 20 20:04:53 2013 UTC

--- 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 @@ namespace RomCheater
 {
     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 @@ namespace RomCheater
         {
             //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 @@ namespace RomCheater
         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))