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

Annotation of /trunk/RomCheater/Main.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17 - (hide annotations) (download)
Wed May 9 08:02:18 2012 UTC (9 years ago) by william
File size: 1049 byte(s)
implement basic logging support

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 17 #region LogWriterSupport
16     static LogWriter _LoggerInstance;
17     static LogWriter LoggerInstance
18     {
19     get { return _LoggerInstance; }
20     set { _LoggerInstance = value; }
21     }
22     #endregion
23    
24    
25 william 13 public Main()
26 william 5 {
27     InitializeComponent();
28 william 17 LoggerInstance = logwriter;
29 william 5 }
30 william 14
31     private void mnuItemExit_Click(object sender, EventArgs e)
32     {
33     this.Close();
34     }
35 william 16
36     private void btnCopyLogToClipboard_Click(object sender, EventArgs e)
37     {
38    
39     }
40 william 17
41     private void Main_Load(object sender, EventArgs e)
42     {
43     logger.WriteLine("logged message");
44     }
45 william 5 }
46     }

  ViewVC Help
Powered by ViewVC 1.1.22