/[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

revision 732 by william, Wed Jun 19 15:18:52 2013 UTC revision 813 by william, Tue Apr 15 14:58:01 2014 UTC
# Line 17  namespace RomCheater.RVAScratchPad Line 17  namespace RomCheater.RVAScratchPad
17  {  {
18      public partial class Form1 : Form      public partial class Form1 : Form
19      {      {
20            const string DockPanelConfig = "RVAScratchPad-DockPanel.conf";
21          private SettingSubscriber SettingsSubscriber = null;          private SettingSubscriber SettingsSubscriber = null;
22          private bool m_bSaveLayout = true;          private bool m_bSaveLayout = true;
23          PluginLoader loader = null;          PluginLoader loader = null;
# Line 53  namespace RomCheater.RVAScratchPad Line 54  namespace RomCheater.RVAScratchPad
54              //LoggerInstance = m_LogWindow.Logwriter;              //LoggerInstance = m_LogWindow.Logwriter;
55              LoggerInstance = new LogWriter(!no_console_redirect);              LoggerInstance = new LogWriter(!no_console_redirect);
56              LoggerInstance.CreateNewLog(false);              LoggerInstance.CreateNewLog(false);
57              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);
58              load_plugins();              load_plugins();
59              if (no_console_redirect)              if (no_console_redirect)
60                  LoggerInstance.RedirectConsoleOutput = false;                            LoggerInstance.RedirectConsoleOutput = false;          
61          }          }
62          private void load_loggerflags()          private void load_loggerflags()
63          {          {
64              logger.SetLoggingFlags(Logging.Properties.Settings.Default.LoggingFlags);              //logger.SetLoggingFlags(Logging.Properties.Settings.Default.LoggingFlags);
65  #if FORCE_ALL_LOGGING_FLAGS  #if FORCE_ALL_LOGGING_FLAGS
66              logger.SetLoggingFlags(loggerflags.ALL);              //logger.SetLoggingFlags(loggerflags.ALL);
67  #endif  #endif
68          }          }
69          private void load_plugins() { load_plugins(false); }          private void load_plugins() { load_plugins(false); }
# Line 233  namespace RomCheater.RVAScratchPad Line 234  namespace RomCheater.RVAScratchPad
234          private void Form1_FormClosing(object sender, FormClosingEventArgs e)          private void Form1_FormClosing(object sender, FormClosingEventArgs e)
235          {          {
236              SettingsSubscriber.SaveSettings();              SettingsSubscriber.SaveSettings();
237              string configFile = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "RVAScratchPad-DockPanel.config");              string configFile = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), DockPanelConfig);
238              if (m_bSaveLayout)              if (m_bSaveLayout)
239                  dockPanel.SaveAsXml(configFile);                  dockPanel.SaveAsXml(configFile);
240              else if (File.Exists(configFile))              else if (File.Exists(configFile))
# Line 249  namespace RomCheater.RVAScratchPad Line 250  namespace RomCheater.RVAScratchPad
250          {          {
251              ////dockPanel.SuspendLayout(true);              ////dockPanel.SuspendLayout(true);
252              ////ShowDocks();              ////ShowDocks();
253              string configFile = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "RVAScratchPad-DockPanel.config");              string configFile = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), DockPanelConfig);
254              if (File.Exists(configFile))              if (File.Exists(configFile))
255              {              {
256                  try                  try

Legend:
Removed from v.732  
changed lines
  Added in v.813

  ViewVC Help
Powered by ViewVC 1.1.22