Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.ComponentModel;
|
---|
4 | using System.Drawing;
|
---|
5 | using System.Data;
|
---|
6 | using System.Text;
|
---|
7 | using System.Windows.Forms;
|
---|
8 | using IndianHealthService.BMXNet.Services;
|
---|
9 |
|
---|
10 | namespace IndianHealthService.BMXNet.TestBench
|
---|
11 | {
|
---|
12 | public partial class LogTranscriptControl : UserControl,ILog
|
---|
13 | {
|
---|
14 | public LogTranscriptControl()
|
---|
15 | {
|
---|
16 | InitializeComponent();
|
---|
17 | }
|
---|
18 |
|
---|
19 | #region ILog Members
|
---|
20 |
|
---|
21 | public bool IsLogging
|
---|
22 | {
|
---|
23 | get { return true; }
|
---|
24 | }
|
---|
25 |
|
---|
26 | public void Log(string aClass, string aCategory, string aMessage)
|
---|
27 | {
|
---|
28 | this.transcriptBox.AppendText(DateTime.Now.ToString("HH:MM:ss.mm").PadRight(12)+" "+aClass.PadRight(10) + " " + aCategory.PadRight(20) + " " + aMessage);
|
---|
29 | }
|
---|
30 |
|
---|
31 | #endregion
|
---|
32 |
|
---|
33 | #region ILog Members
|
---|
34 |
|
---|
35 |
|
---|
36 | public void Log(string aClass, string aCategory, params string[] lines)
|
---|
37 | {
|
---|
38 | throw new NotImplementedException();
|
---|
39 | }
|
---|
40 |
|
---|
41 | public void Log(string aClass, string aCategory, Exception anException, params string[] lines)
|
---|
42 | {
|
---|
43 | throw new NotImplementedException();
|
---|
44 | }
|
---|
45 |
|
---|
46 | #endregion
|
---|
47 | }
|
---|
48 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.