/[EmuXPortal]/trunk/EmuXPortal/Api/ConfigLoader.cs
ViewVC logotype

Diff of /trunk/EmuXPortal/Api/ConfigLoader.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/EmuXPortal/Api/ConfigLoader.cs	2012/04/03 21:35:13	14
+++ trunk/EmuXPortal/Api/ConfigLoader.cs	2012/04/03 21:39:47	15
@@ -47,8 +47,10 @@
                         {
                             reader.ReadToFollowing("ROMPATH");
                             RomPath = reader.ReadElementContentAsString();
+                            logger.WriteLine("\tROMPATH={0}", RomPath);
                             reader.ReadToFollowing("DISPLAYDEVICE");
                             DisplayDevice = reader.ReadElementContentAsString();
+                            logger.WriteLine("\tDISPLAYDEVICE={0}", DisplayDevice);
                         }
                     }
                     logger.WriteLine("Loaded Config: {0}", path);
@@ -81,11 +83,15 @@
         public static string DisplayDevice { get { return loader.DisplayDevice; } }
         #endregion
         public static void InitializePresentationForm(Form frm)
-        {
+        {            
             DisplayHelper helper = new DisplayHelper(DisplayDevice);
-            Screen s = helper.PhysicalDisplayDevice;
+            logger.WriteLine("Initializing Form: {0}", frm.Name);
+            Screen s = helper.PhysicalDisplayDevice;           
             frm.Location = new System.Drawing.Point(s.Bounds.X,s.Bounds.Y);
+            logger.WriteLine("\tLocation={0}", frm.Location.ToString());
             frm.Size = s.Bounds.Size;
+            logger.WriteLine("\tSize={0}", frm.Size.ToString());
+            logger.WriteLine("Initialized Form: {0}", frm.Name);
         }
     }
 

 

  ViewVC Help
Powered by ViewVC 1.1.22