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

Annotation of /trunk/RomCheater/Main.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 69 - (hide annotations) (download)
Wed May 9 16:45:44 2012 UTC (9 years ago) by william
File size: 2027 byte(s)


1 william 5 using System;
2     using System.Collections.Generic;
3     using System.ComponentModel;
4     using System.Data;
5     using System.Drawing;
6     using System.Linq;
7     using System.Text;
8     using System.Windows.Forms;
9 william 17 using RomCheater.Logging;
10 william 34 using RomCheater.Properties;
11     using RomCheater.UserSettingsSupport;
12 william 5
13     namespace RomCheater
14     {
15 william 13 public partial class Main : Form
16 william 5 {
17 william 34 static Main()
18     {
19     SettingSubscriber.AddSubscriber(Settings.Default);
20     }
21 william 20 private const string t = "RomCheater";
22 william 17 #region LogWriterSupport
23     static LogWriter _LoggerInstance;
24     static LogWriter LoggerInstance
25     {
26     get { return _LoggerInstance; }
27     set { _LoggerInstance = value; }
28     }
29     #endregion
30    
31    
32 william 13 public Main()
33 william 5 {
34     InitializeComponent();
35 william 34
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 william 17 LoggerInstance = logwriter;
52 william 23 LoggerInstance.CreateNewLog(false);
53 william 5 }
54 william 14
55     private void mnuItemExit_Click(object sender, EventArgs e)
56     {
57     this.Close();
58     }
59 william 16
60     private void btnCopyLogToClipboard_Click(object sender, EventArgs e)
61     {
62    
63     }
64 william 17
65     private void Main_Load(object sender, EventArgs e)
66 william 58 {
67 william 17 }
68 william 63
69     private void mnuItemConfig_Click(object sender, EventArgs e)
70     {
71     RomCheaterConfigDialog dlg = new RomCheaterConfigDialog();
72     dlg.ShowDialog();
73     }
74 william 69
75     private void mnuItemOpenProcess_Click(object sender, EventArgs e)
76     {
77    
78     }
79 william 5 }
80     }

  ViewVC Help
Powered by ViewVC 1.1.22