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

Diff of /trunk/RomCheater/Main.cs

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

revision 69 by william, Wed May 9 16:45:44 2012 UTC revision 83 by william, Wed May 9 17:48:15 2012 UTC
# Line 9  using System.Windows.Forms; Line 9  using System.Windows.Forms;
9  using RomCheater.Logging;  using RomCheater.Logging;
10  using RomCheater.Properties;  using RomCheater.Properties;
11  using RomCheater.UserSettingsSupport;  using RomCheater.UserSettingsSupport;
12    using RomCheater.PluginFramework.Core;
13    
14  namespace RomCheater  namespace RomCheater
15  {  {
# Line 32  namespace RomCheater Line 33  namespace RomCheater
33          public Main()          public Main()
34          {          {
35              InitializeComponent();              InitializeComponent();
36                load_loggerflags();
   
             try  
             {  
                 if (Settings.Default.UpgradeRequired)  
                 {  
                     Settings.Default.Upgrade();  
                     Settings.Default.Reload();  
                     Settings.Default.UpgradeRequired = false;  
                     Settings.Default.Save();  
                 }  
             }  
             catch  
             {  
                 Settings.Default.Reset();  
             }  
37              LoggerInstance = logwriter;              LoggerInstance = logwriter;
38              LoggerInstance.CreateNewLog(false);              LoggerInstance.CreateNewLog(false);
39          }          }
40    
41            private void load_loggerflags()
42            {
43                logger.SetLoggingFlags((loggerflags)Logging.Properties.Settings.Default.LoggingFlags);
44            }
45    
46          private void mnuItemExit_Click(object sender, EventArgs e)          private void mnuItemExit_Click(object sender, EventArgs e)
47          {          {
48              this.Close();              this.Close();
# Line 63  namespace RomCheater Line 54  namespace RomCheater
54          }          }
55    
56          private void Main_Load(object sender, EventArgs e)          private void Main_Load(object sender, EventArgs e)
57          {                      {
58                PluginLoader loader = new PluginLoader();
59                loader.LoadPlugins();
60          }          }
61    
62          private void mnuItemConfig_Click(object sender, EventArgs e)          private void mnuItemConfig_Click(object sender, EventArgs e)

Legend:
Removed from v.69  
changed lines
  Added in v.83

  ViewVC Help
Powered by ViewVC 1.1.22