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

Comparing trunk/RomCheater.RVAScratchPad/Form1.cs (file contents):
Revision 754 by william, Wed Jun 19 15:18:52 2013 UTC vs.
Revision 755 by william, Thu Jun 20 20:04:53 2013 UTC

--- trunk/RomCheater.RVAScratchPad/Form1.cs	2013/06/20 20:01:05	754
+++ trunk/RomCheater.RVAScratchPad/Form1.cs	2013/06/20 20:04:53	755
@@ -17,6 +17,7 @@ namespace RomCheater.RVAScratchPad
 {
     public partial class Form1 : Form
     {
+        const string DockPanelConfig = "RVAScratchPad-DockPanel.conf";
         private SettingSubscriber SettingsSubscriber = null;
         private bool m_bSaveLayout = true;
         PluginLoader loader = null;
@@ -233,7 +234,7 @@ namespace RomCheater.RVAScratchPad
         private void Form1_FormClosing(object sender, FormClosingEventArgs e)
         {
             SettingsSubscriber.SaveSettings();
-            string configFile = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "RVAScratchPad-DockPanel.config");
+            string configFile = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), DockPanelConfig);
             if (m_bSaveLayout)
                 dockPanel.SaveAsXml(configFile);
             else if (File.Exists(configFile))
@@ -249,7 +250,7 @@ namespace RomCheater.RVAScratchPad
         {
             ////dockPanel.SuspendLayout(true);
             ////ShowDocks();
-            string configFile = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "RVAScratchPad-DockPanel.config");
+            string configFile = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), DockPanelConfig);
             if (File.Exists(configFile))
             {
                 try