changeset 238:55c94d438a4b

Re #58: Remove LogNotifier from API * Add logging moved from API
author IBBoard <dev@ibboard.co.uk>
date Sat, 17 Mar 2012 21:03:33 +0000
parents ea5cb50ebe5e
children 2c3474d652e1
files FrmMain.cs
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/FrmMain.cs	Sat Jan 21 16:51:07 2012 +0000
     1.2 +++ b/FrmMain.cs	Sat Mar 17 21:03:33 2012 +0000
     1.3 @@ -897,6 +897,15 @@
     1.4  
     1.5  		private void FrmMain_GameSystemChanged(GameSystem oldSystem, GameSystem newSystem)
     1.6  		{
     1.7 +			if (newSystem != null)
     1.8 +			{
     1.9 +				log.DebugFormat("Game system set to {0} with ID {1}", newSystem.Name, newSystem.ID);
    1.10 +			}
    1.11 +			else
    1.12 +			{
    1.13 +				log.Debug("Game system set to null");
    1.14 +			}
    1.15 +			
    1.16  			SetAppTitle();
    1.17  
    1.18              if (newSystem == null)