ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater/Main.cs
Revision: 69
Committed: Wed May 9 16:45:44 2012 UTC (11 years, 6 months ago) by william
File size: 2027 byte(s)
Log Message:

File Contents

# Content
1 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 using RomCheater.Logging;
10 using RomCheater.Properties;
11 using RomCheater.UserSettingsSupport;
12
13 namespace RomCheater
14 {
15 public partial class Main : Form
16 {
17 static Main()
18 {
19 SettingSubscriber.AddSubscriber(Settings.Default);
20 }
21 private const string t = "RomCheater";
22 #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 public Main()
33 {
34 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;
52 LoggerInstance.CreateNewLog(false);
53 }
54
55 private void mnuItemExit_Click(object sender, EventArgs e)
56 {
57 this.Close();
58 }
59
60 private void btnCopyLogToClipboard_Click(object sender, EventArgs e)
61 {
62
63 }
64
65 private void Main_Load(object sender, EventArgs e)
66 {
67 }
68
69 private void mnuItemConfig_Click(object sender, EventArgs e)
70 {
71 RomCheaterConfigDialog dlg = new RomCheaterConfigDialog();
72 dlg.ShowDialog();
73 }
74
75 private void mnuItemOpenProcess_Click(object sender, EventArgs e)
76 {
77
78 }
79 }
80 }