changeset 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 5064ad3b16f7
children aca4eb3fae50
files FrmMain.cs IBBoard.WarFoundry.GUI.WinForms.csproj
diffstat 2 files changed, 17 insertions(+), 9 deletions(-) [+]
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();
 
--- a/IBBoard.WarFoundry.GUI.WinForms.csproj	Sun Mar 01 15:22:39 2009 +0000
+++ b/IBBoard.WarFoundry.GUI.WinForms.csproj	Sun Mar 01 15:27:12 2009 +0000
@@ -91,6 +91,10 @@
     <Reference Include="System.Xml">
       <Name>System.XML</Name>
     </Reference>
+    <ProjectReference Include="..\IBBoard.Log4Net\IBBoard.Log4Net.csproj">
+      <Project>{DCBA3FB1-267A-4D89-955B-5C05785EE1CD}</Project>
+      <Name>IBBoard.Log4Net</Name>
+    </ProjectReference>
     <ProjectReference Include="..\IBBoard.Windows.Forms\IBBoard.Windows.Forms.csproj">
       <Name>IBBoard.Windows.Forms</Name>
       <Project>{E3790268-2082-4975-B1A3-C70B37842CE8}</Project>
@@ -178,6 +182,8 @@
       <DependentUpon>FrmUnit.cs</DependentUpon>
     </EmbeddedResource>
     <None Include="app.config" />
+    <None Include="COPYING.GPL" />
+    <None Include="COPYING.LGPL" />
     <None Include="translations\en.translation">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </None>