/[RomCheater]/trunk/RomCheater.RVAScratchPad/Form1.cs
ViewVC logotype

Diff of /trunk/RomCheater.RVAScratchPad/Form1.cs

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

--- trunk/RomCheater.RVAScratchPad/Form1.cs	2013/06/19 15:13:24	731
+++ trunk/RomCheater.RVAScratchPad/Form1.cs	2014/04/15 14:58:01	813
@@ -17,6 +17,7 @@
 {
     public partial class Form1 : Form
     {
+        const string DockPanelConfig = "RVAScratchPad-DockPanel.conf";
         private SettingSubscriber SettingsSubscriber = null;
         private bool m_bSaveLayout = true;
         PluginLoader loader = null;
@@ -53,16 +54,16 @@
             //LoggerInstance = m_LogWindow.Logwriter;
             LoggerInstance = new LogWriter(!no_console_redirect);
             LoggerInstance.CreateNewLog(false);
-            logger.ForceLog.Info.WriteLine("LoggingFlags = 0x{0:x4} ({1})", logger.GetLoggingFlags().Value, logger.GetLoggingFlags().Name);
+            //logger.ForceLog.Info.WriteLine("LoggingFlags = 0x{0:x4} ({1})", logger.GetLoggingFlags().Value, logger.GetLoggingFlags().Name);
             load_plugins();
             if (no_console_redirect)
                 LoggerInstance.RedirectConsoleOutput = false;           
         }
         private void load_loggerflags()
         {
-            logger.SetLoggingFlags(Logging.Properties.Settings.Default.LoggingFlags);
+            //logger.SetLoggingFlags(Logging.Properties.Settings.Default.LoggingFlags);
 #if FORCE_ALL_LOGGING_FLAGS
-            logger.SetLoggingFlags(loggerflags.ALL);
+            //logger.SetLoggingFlags(loggerflags.ALL);
 #endif
         }
         private void load_plugins() { load_plugins(false); }
@@ -225,7 +226,7 @@
                 ScratchPadPlugin.DockHandler.CloseButton = false;
                 ScratchPadPlugin.DockHandler.CloseButtonVisible = false;
                 ScratchPadPlugin.DockHandler.AllowEndUserDocking = false;
-                ScratchPadPlugin.Show(dockPanel, DockState.DockRight);
+                ScratchPadPlugin.Show(dockPanel, DockState.Document);
             }
         }
         #endregion
@@ -233,7 +234,7 @@
         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 @@
         {
             ////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

 

  ViewVC Help
Powered by ViewVC 1.1.22