@@ -55,16 +55,17 @@ public static WindowSettings Read(string fileName)
5555 Top = int . Parse ( positionElement . Attribute ( "top" ) . Value ) ,
5656 Width = int . Parse ( positionElement . Attribute ( "width" ) . Value ) ,
5757 Height = int . Parse ( positionElement . Attribute ( "height" ) . Value ) ,
58- AeroGlass = systemMenuElement . Attribute ( "aeroGlass" ) == null ? ( bool ? ) null : systemMenuElement . Attribute ( "aeroGlass" ) . Value . ToLower ( ) == "true" ,
59- AlwaysOnTop = systemMenuElement . Attribute ( "alwaysOnTop" ) == null ? ( bool ? ) null : systemMenuElement . Attribute ( "alwaysOnTop" ) . Value . ToLower ( ) == "true" ,
60- HideForAltTab = systemMenuElement . Attribute ( "hideForAltTab" ) == null ? ( bool ? ) null : systemMenuElement . Attribute ( "hideForAltTab" ) . Value . ToLower ( ) == "true" ,
61- Alignment = systemMenuElement . Attribute ( "alignment" ) == null ? ( WindowAlignment ? ) null : ( WindowAlignment ) int . Parse ( systemMenuElement . Attribute ( "alignment" ) . Value ) ,
62- Transparency = systemMenuElement . Attribute ( "transparency" ) == null ? ( int ? ) null : int . Parse ( systemMenuElement . Attribute ( "transparency" ) . Value ) ,
63- Priority = systemMenuElement . Attribute ( "priority" ) == null ? ( Priority ? ) null : ( Priority ) int . Parse ( systemMenuElement . Attribute ( "priority" ) . Value ) ,
64- MinimizeToTrayAlways = systemMenuElement . Attribute ( "minimizeToTrayAlways" ) == null ? ( bool ? ) null : systemMenuElement . Attribute ( "minimizeToTrayAlways" ) . Value . ToLower ( ) == "true" ,
65- IsDisabledMinimizeButton = systemMenuElement . Attribute ( "disableMinimizeButton" ) == null ? ( bool ? ) null : systemMenuElement . Attribute ( "disableMinimizeButton" ) . Value . ToLower ( ) == "true" ,
66- IsDisabledMaximizeButton = systemMenuElement . Attribute ( "disableMaximizeButton" ) == null ? ( bool ? ) null : systemMenuElement . Attribute ( "disableMaximizeButton" ) . Value . ToLower ( ) == "true" ,
67- IsDisabledCloseButton = systemMenuElement . Attribute ( "disableCloseButton" ) == null ? ( bool ? ) null : systemMenuElement . Attribute ( "disableCloseButton" ) . Value . ToLower ( ) == "true"
58+ AeroGlass = systemMenuElement . Attribute ( "aeroGlass" ) == null ? null : systemMenuElement . Attribute ( "aeroGlass" ) . Value . ToLower ( ) == "true" ,
59+ AlwaysOnTop = systemMenuElement . Attribute ( "alwaysOnTop" ) == null ? null : systemMenuElement . Attribute ( "alwaysOnTop" ) . Value . ToLower ( ) == "true" ,
60+ HideForAltTab = systemMenuElement . Attribute ( "hideForAltTab" ) == null ? null : systemMenuElement . Attribute ( "hideForAltTab" ) . Value . ToLower ( ) == "true" ,
61+ Resizable = systemMenuElement . Attribute ( "resizable" ) == null ? null : systemMenuElement . Attribute ( "resizable" ) . Value . ToLower ( ) == "true" ,
62+ Alignment = systemMenuElement . Attribute ( "alignment" ) == null ? null : ( WindowAlignment ) int . Parse ( systemMenuElement . Attribute ( "alignment" ) . Value ) ,
63+ Transparency = systemMenuElement . Attribute ( "transparency" ) == null ? null : int . Parse ( systemMenuElement . Attribute ( "transparency" ) . Value ) ,
64+ Priority = systemMenuElement . Attribute ( "priority" ) == null ? null : ( Priority ) int . Parse ( systemMenuElement . Attribute ( "priority" ) . Value ) ,
65+ MinimizeToTrayAlways = systemMenuElement . Attribute ( "minimizeToTrayAlways" ) == null ? null : systemMenuElement . Attribute ( "minimizeToTrayAlways" ) . Value . ToLower ( ) == "true" ,
66+ IsDisabledMinimizeButton = systemMenuElement . Attribute ( "disableMinimizeButton" ) == null ? null : systemMenuElement . Attribute ( "disableMinimizeButton" ) . Value . ToLower ( ) == "true" ,
67+ IsDisabledMaximizeButton = systemMenuElement . Attribute ( "disableMaximizeButton" ) == null ? null : systemMenuElement . Attribute ( "disableMaximizeButton" ) . Value . ToLower ( ) == "true" ,
68+ IsDisabledCloseButton = systemMenuElement . Attribute ( "disableCloseButton" ) == null ? null : systemMenuElement . Attribute ( "disableCloseButton" ) . Value . ToLower ( ) == "true"
6869 } ;
6970 } )
7071 . ToList ( ) ;
@@ -87,6 +88,7 @@ public static void Save(string fileName, WindowSettings windowSettings, Applicat
8788 settings . SaveSelectedItems . AeroGlass && x . AeroGlass . HasValue ? new XAttribute ( "aeroGlass" , x . AeroGlass . Value . ToString ( ) . ToLower ( ) ) : null ,
8889 settings . SaveSelectedItems . AlwaysOnTop && x . AlwaysOnTop . HasValue ? new XAttribute ( "alwaysOnTop" , x . AlwaysOnTop . Value . ToString ( ) . ToLower ( ) ) : null ,
8990 settings . SaveSelectedItems . HideForAltTab && x . HideForAltTab . HasValue ? new XAttribute ( "hideForAltTab" , x . HideForAltTab . Value . ToString ( ) . ToLower ( ) ) : null ,
91+ settings . SaveSelectedItems . Resizable && x . Resizable . HasValue ? new XAttribute ( "resizable" , x . Resizable . Value . ToString ( ) . ToLower ( ) ) : null ,
9092 settings . SaveSelectedItems . Alignment && x . Alignment . HasValue ? new XAttribute ( "alignment" , ( int ) x . Alignment . Value ) : null ,
9193 settings . SaveSelectedItems . Transparency && x . Transparency . HasValue ? new XAttribute ( "transparency" , x . Transparency . Value . ToString ( ) . ToLower ( ) ) : null ,
9294 settings . SaveSelectedItems . Priority && x . Priority . HasValue ? new XAttribute ( "priority" , ( int ) x . Priority ) : null ,
0 commit comments