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

Contents of /trunk/RomCheater/Main.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 86 - (show annotations) (download)
Wed May 9 19:41:06 2012 UTC (9 years ago) by william
File size: 2060 byte(s)
+ add support to set plugins in user settings

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 using System.Diagnostics;
14
15 namespace RomCheater
16 {
17 public partial class Main : Form
18 {
19 PluginLoader loader = null;
20 static Main()
21 {
22 SettingSubscriber.AddSubscriber(Settings.Default);
23 }
24 private const string t = "RomCheater";
25 #region LogWriterSupport
26 static LogWriter _LoggerInstance;
27 static LogWriter LoggerInstance
28 {
29 get { return _LoggerInstance; }
30 set { _LoggerInstance = value; }
31 }
32 #endregion
33
34
35 public Main()
36 {
37 InitializeComponent();
38 load_loggerflags();
39 LoggerInstance = logwriter;
40 LoggerInstance.CreateNewLog(false);
41 }
42
43 private void load_loggerflags()
44 {
45 logger.SetLoggingFlags((loggerflags)Logging.Properties.Settings.Default.LoggingFlags);
46 }
47
48 private void mnuItemExit_Click(object sender, EventArgs e)
49 {
50 this.Close();
51 }
52
53 private void btnCopyLogToClipboard_Click(object sender, EventArgs e)
54 {
55
56 }
57
58 private void Main_Load(object sender, EventArgs e)
59 {
60 loader = new PluginLoader();
61 loader.LoadPlugins();
62 }
63
64 private void mnuItemConfig_Click(object sender, EventArgs e)
65 {
66 RomCheaterConfigDialog dlg = new RomCheaterConfigDialog(loader);
67 dlg.ShowDialog();
68 }
69
70 private void mnuItemOpenProcess_Click(object sender, EventArgs e)
71 {
72 //List<Process> procs = loader.LoadedConfigPlugins[0].ValidProcessesForPlugin;
73 }
74 }
75 }

  ViewVC Help
Powered by ViewVC 1.1.22