/[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 26 by william, Wed May 9 09:28:57 2012 UTC revision 34 by william, Wed May 9 11:29:33 2012 UTC
# Line 7  using System.Linq; Line 7  using System.Linq;
7  using System.Text;  using System.Text;
8  using System.Windows.Forms;  using System.Windows.Forms;
9  using RomCheater.Logging;  using RomCheater.Logging;
10    using RomCheater.Properties;
11    using RomCheater.UserSettingsSupport;
12    
13  namespace RomCheater  namespace RomCheater
14  {  {
15      public partial class Main : Form      public partial class Main : Form
16      {      {
17            static Main()
18            {
19                SettingSubscriber.AddSubscriber(Settings.Default);
20            }
21          private const string t = "RomCheater";          private const string t = "RomCheater";
22          #region LogWriterSupport          #region LogWriterSupport
23          static LogWriter _LoggerInstance;          static LogWriter _LoggerInstance;
# Line 26  namespace RomCheater Line 32  namespace RomCheater
32          public Main()          public Main()
33          {          {
34              InitializeComponent();              InitializeComponent();
35    
36    
37                try
38                {
39                    if (Settings.Default.UpgradeRequired)
40                    {
41                        Settings.Default.Upgrade();
42                        Settings.Default.Reload();
43                        Settings.Default.UpgradeRequired = false;
44                        Settings.Default.Save();
45                    }
46                }
47                catch
48                {
49                    Settings.Default.Reset();
50                }
51              LoggerInstance = logwriter;              LoggerInstance = logwriter;
             logger.SetLoggingFlags(loggerflags.DEFAULT);  
52              LoggerInstance.CreateNewLog(false);              LoggerInstance.CreateNewLog(false);
53          }          }
54    

Legend:
Removed from v.26  
changed lines
  Added in v.34

  ViewVC Help
Powered by ViewVC 1.1.22