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

Annotation of /trunk/RomCheater/Main.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 83 - (hide annotations) (download)
Wed May 9 17:48:15 2012 UTC (9 years ago) by william
File size: 1901 byte(s)
plugin wip

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 83 using RomCheater.PluginFramework.Core;
13 william 5
14     namespace RomCheater
15     {
16 william 13 public partial class Main : Form
17 william 5 {
18 william 34 static Main()
19     {
20     SettingSubscriber.AddSubscriber(Settings.Default);
21     }
22 william 20 private const string t = "RomCheater";
23 william 17 #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 william 13 public Main()
34 william 5 {
35     InitializeComponent();
36 william 83 load_loggerflags();
37 william 17 LoggerInstance = logwriter;
38 william 23 LoggerInstance.CreateNewLog(false);
39 william 5 }
40 william 14
41 william 83 private void load_loggerflags()
42     {
43     logger.SetLoggingFlags((loggerflags)Logging.Properties.Settings.Default.LoggingFlags);
44     }
45    
46 william 14 private void mnuItemExit_Click(object sender, EventArgs e)
47     {
48     this.Close();
49     }
50 william 16
51     private void btnCopyLogToClipboard_Click(object sender, EventArgs e)
52     {
53    
54     }
55 william 17
56     private void Main_Load(object sender, EventArgs e)
57 william 83 {
58     PluginLoader loader = new PluginLoader();
59     loader.LoadPlugins();
60 william 17 }
61 william 63
62     private void mnuItemConfig_Click(object sender, EventArgs e)
63     {
64     RomCheaterConfigDialog dlg = new RomCheaterConfigDialog();
65     dlg.ShowDialog();
66     }
67 william 69
68     private void mnuItemOpenProcess_Click(object sender, EventArgs e)
69     {
70    
71     }
72 william 5 }
73     }

  ViewVC Help
Powered by ViewVC 1.1.22