ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater/Main.cs
Revision: 83
Committed: Wed May 9 17:48:15 2012 UTC (11 years, 7 months ago) by william
File size: 1901 byte(s)
Log Message:
plugin wip

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 using RomCheater.PluginFramework.Core;
13
14 namespace RomCheater
15 {
16 public partial class Main : Form
17 {
18 static Main()
19 {
20 SettingSubscriber.AddSubscriber(Settings.Default);
21 }
22 private const string t = "RomCheater";
23 #region LogWriterSupport
24 static LogWriter _LoggerInstance;
25 static LogWriter LoggerInstance
26 {
27 get { return _LoggerInstance; }
28 set { _LoggerInstance = value; }
29 }
30 #endregion
31
32
33 public Main()
34 {
35 InitializeComponent();
36 load_loggerflags();
37 LoggerInstance = logwriter;
38 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)
47 {
48 this.Close();
49 }
50
51 private void btnCopyLogToClipboard_Click(object sender, EventArgs e)
52 {
53
54 }
55
56 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)
63 {
64 RomCheaterConfigDialog dlg = new RomCheaterConfigDialog();
65 dlg.ShowDialog();
66 }
67
68 private void mnuItemOpenProcess_Click(object sender, EventArgs e)
69 {
70
71 }
72 }
73 }