47 |
{ |
{ |
48 |
reader.ReadToFollowing("ROMPATH"); |
reader.ReadToFollowing("ROMPATH"); |
49 |
RomPath = reader.ReadElementContentAsString(); |
RomPath = reader.ReadElementContentAsString(); |
50 |
|
logger.WriteLine("\tROMPATH={0}", RomPath); |
51 |
reader.ReadToFollowing("DISPLAYDEVICE"); |
reader.ReadToFollowing("DISPLAYDEVICE"); |
52 |
DisplayDevice = reader.ReadElementContentAsString(); |
DisplayDevice = reader.ReadElementContentAsString(); |
53 |
|
logger.WriteLine("\tDISPLAYDEVICE={0}", DisplayDevice); |
54 |
} |
} |
55 |
} |
} |
56 |
logger.WriteLine("Loaded Config: {0}", path); |
logger.WriteLine("Loaded Config: {0}", path); |
83 |
public static string DisplayDevice { get { return loader.DisplayDevice; } } |
public static string DisplayDevice { get { return loader.DisplayDevice; } } |
84 |
#endregion |
#endregion |
85 |
public static void InitializePresentationForm(Form frm) |
public static void InitializePresentationForm(Form frm) |
86 |
{ |
{ |
87 |
DisplayHelper helper = new DisplayHelper(DisplayDevice); |
DisplayHelper helper = new DisplayHelper(DisplayDevice); |
88 |
Screen s = helper.PhysicalDisplayDevice; |
logger.WriteLine("Initializing Form: {0}", frm.Name); |
89 |
|
Screen s = helper.PhysicalDisplayDevice; |
90 |
frm.Location = new System.Drawing.Point(s.Bounds.X,s.Bounds.Y); |
frm.Location = new System.Drawing.Point(s.Bounds.X,s.Bounds.Y); |
91 |
|
logger.WriteLine("\tLocation={0}", frm.Location.ToString()); |
92 |
frm.Size = s.Bounds.Size; |
frm.Size = s.Bounds.Size; |
93 |
|
logger.WriteLine("\tSize={0}", frm.Size.ToString()); |
94 |
|
logger.WriteLine("Initialized Form: {0}", frm.Name); |
95 |
} |
} |
96 |
} |
} |
97 |
|
|