diff FrmMain.cs @ 5:26fc79eeda37

Fixes #31 - Add log4net logging to WinForms interface * Reference IBBoard.Log4Net project * Register notify handler in main form
author IBBoard <dev@ibboard.co.uk>
date Sun, 01 Mar 2009 15:27:12 +0000
parents 8935971e307c
children 9828ba4f3f36
line wrap: on
line diff
--- a/FrmMain.cs	Sun Mar 01 15:22:39 2009 +0000
+++ b/FrmMain.cs	Sun Mar 01 15:27:12 2009 +0000
@@ -9,20 +9,21 @@
 using System.ComponentModel;
 using System.Windows.Forms;
 using System.Data;
-using System.IO;
+using System.IO;
 using System.Threading;
+using log4net;
 using IBBoard;
 using IBBoard.CustomMath;
 using IBBoard.Commands;
 using IBBoard.IO;
-using IBBoard.Lang;
-using IBBoard.WarFoundry.API;
-using IBBoard.WarFoundry.API.Commands;
-using IBBoard.Windows.Forms;
+using IBBoard.Lang;
+using IBBoard.Log4Net;
+using IBBoard.Windows.Forms;
+using IBBoard.Windows.Forms.I18N;
 using IBBoard.Xml;
-using log4net;
+using IBBoard.WarFoundry.API;
+using IBBoard.WarFoundry.API.Commands;
 using IBBoard.WarFoundry.API.Objects;
-using IBBoard.Windows.Forms.I18N;
 using IBBoard.WarFoundry.API.Savers;
 
 namespace IBBoard.WarFoundry
@@ -90,8 +91,9 @@
 
 		public FrmMain(string[] args)
 		{
-			this.Closing+=new CancelEventHandler(FrmMain_Closing);
-			CommandStack.CommandStackUpdated+=new MethodInvoker(commandStack_CommandStackUpdated);
+			this.Closing+=new CancelEventHandler(FrmMain_Closing);
+            CommandStack.CommandStackUpdated += new MethodInvoker(commandStack_CommandStackUpdated);
+            LogNotifierHandler.RegisterNotifierHandler();
 
 			InitializeComponent();