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

Annotation of /trunk/RomCheater/Main.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 26 - (hide annotations) (download)
Wed May 9 09:28:57 2012 UTC (8 years, 11 months ago) by william
File size: 1338 byte(s)
info, debug, and error log messages

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 5
11     namespace RomCheater
12     {
13 william 13 public partial class Main : Form
14 william 5 {
15 william 20 private const string t = "RomCheater";
16 william 17 #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 william 13 public Main()
27 william 5 {
28     InitializeComponent();
29 william 17 LoggerInstance = logwriter;
30 william 26 logger.SetLoggingFlags(loggerflags.DEFAULT);
31 william 23 LoggerInstance.CreateNewLog(false);
32 william 5 }
33 william 14
34     private void mnuItemExit_Click(object sender, EventArgs e)
35     {
36     this.Close();
37     }
38 william 16
39     private void btnCopyLogToClipboard_Click(object sender, EventArgs e)
40     {
41    
42     }
43 william 17
44     private void Main_Load(object sender, EventArgs e)
45     {
46 william 26 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 william 17 }
50 william 5 }
51     }

  ViewVC Help
Powered by ViewVC 1.1.22