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 |
|
11 |
namespace RomCheater |
12 |
{ |
13 |
public partial class Main : Form |
14 |
{ |
15 |
private const string t = "RomCheater"; |
16 |
#region LogWriterSupport |
17 |
static LogWriter _LoggerInstance; |
18 |
static LogWriter LoggerInstance |
19 |
{ |
20 |
get { return _LoggerInstance; } |
21 |
set { _LoggerInstance = value; } |
22 |
} |
23 |
#endregion |
24 |
|
25 |
|
26 |
public Main() |
27 |
{ |
28 |
InitializeComponent(); |
29 |
LoggerInstance = logwriter; |
30 |
logger.SetLoggingFlags(loggerflags.DEFAULT); |
31 |
LoggerInstance.CreateNewLog(false); |
32 |
} |
33 |
|
34 |
private void mnuItemExit_Click(object sender, EventArgs e) |
35 |
{ |
36 |
this.Close(); |
37 |
} |
38 |
|
39 |
private void btnCopyLogToClipboard_Click(object sender, EventArgs e) |
40 |
{ |
41 |
|
42 |
} |
43 |
|
44 |
private void Main_Load(object sender, EventArgs e) |
45 |
{ |
46 |
logger.Info.WriteLine("this is an info line"); |
47 |
logger.Debug.WriteLine("this is a debug line"); |
48 |
logger.Error.WriteLine("this is an error line"); |
49 |
} |
50 |
} |
51 |
} |