File tree Expand file tree Collapse file tree 4 files changed +21
-15
lines changed
WindowsNotepadParser-Minimal Expand file tree Collapse file tree 4 files changed +21
-15
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ public StateMap()
108108
109109 public sealed class WindowMap : ClassMap < NPWindowState >
110110 {
111- public WindowMap ( )
111+ public WindowMap ( )
112112 {
113113 AutoMap ( System . Globalization . CultureInfo . InvariantCulture ) ;
114114 Map ( m => m . FileName ) . Index ( 0 ) ;
@@ -117,12 +117,15 @@ public WindowMap()
117117 Map ( m => m . NumberTabs ) . Index ( 3 ) ;
118118 Map ( m => m . TabsList ) . Index ( 4 ) ;
119119 Map ( m => m . ActiveTab ) . Index ( 5 ) ;
120- Map ( m => m . TopLeftCoords ) . Index ( 6 ) ;
121- Map ( m => m . BottomRightCoords ) . Index ( 7 ) ;
122- Map ( m => m . WindowSize ) . Index ( 8 ) ;
123- Map ( m => m . CRC32Stored ) . Index ( 9 ) ;
124- Map ( m => m . CRC32Calculated ) . Index ( 10 ) ;
125- Map ( m => m . bytes ) . Index ( 11 ) ;
120+ Map ( m => m . TopLeftCoords . X ) . Name ( "TopLeftCoords-X" ) . Index ( 6 ) ;
121+ Map ( m => m . TopLeftCoords . Y ) . Name ( "TopLeftCoords-Y" ) . Index ( 7 ) ;
122+ Map ( m => m . BottomRightCoords . X ) . Name ( "BottomRightCoords-X" ) . Index ( 8 ) ;
123+ Map ( m => m . BottomRightCoords . Y ) . Name ( "BottomRightCoords-Y" ) . Index ( 9 ) ;
124+ Map ( m => m . WindowSize . X ) . Name ( "WindowSize-X" ) . Index ( 10 ) ;
125+ Map ( m => m . WindowSize . Y ) . Name ( "WindowSize-Y" ) . Index ( 11 ) ;
126+ Map ( m => m . CRC32Stored ) . Index ( 12 ) ;
127+ Map ( m => m . CRC32Calculated ) . Index ( 13 ) ;
128+ Map ( m => m . bytes ) . Index ( 14 ) ;
126129 }
127130 }
128131}
Original file line number Diff line number Diff line change 77 <ImplicitUsings >enable</ImplicitUsings >
88 <Nullable >enable</Nullable >
99 <Authors >ogmini</Authors >
10- <Version >1.0.2 </Version >
10+ <Version >1.0.3 </Version >
1111 <PackageProjectUrl >https://github.com/ogmini/Notepad-State-Library</PackageProjectUrl >
1212 </PropertyGroup >
1313
Original file line number Diff line number Diff line change @@ -117,12 +117,15 @@ public WindowMap()
117117 Map ( m => m . NumberTabs ) . Index ( 3 ) ;
118118 Map ( m => m . TabsList ) . Index ( 4 ) ;
119119 Map ( m => m . ActiveTab ) . Index ( 5 ) ;
120- Map ( m => m . TopLeftCoords ) . Index ( 6 ) ;
121- Map ( m => m . BottomRightCoords ) . Index ( 7 ) ;
122- Map ( m => m . WindowSize ) . Index ( 8 ) ;
123- Map ( m => m . CRC32Stored ) . Index ( 9 ) ;
124- Map ( m => m . CRC32Calculated ) . Index ( 10 ) ;
125- Map ( m => m . bytes ) . Index ( 11 ) ;
120+ Map ( m => m . TopLeftCoords . X ) . Name ( "TopLeftCoords-X" ) . Index ( 6 ) ;
121+ Map ( m => m . TopLeftCoords . Y ) . Name ( "TopLeftCoords-Y" ) . Index ( 7 ) ;
122+ Map ( m => m . BottomRightCoords . X ) . Name ( "BottomRightCoords-X" ) . Index ( 8 ) ;
123+ Map ( m => m . BottomRightCoords . Y ) . Name ( "BottomRightCoords-Y" ) . Index ( 9 ) ;
124+ Map ( m => m . WindowSize . X ) . Name ( "WindowSize-X" ) . Index ( 10 ) ;
125+ Map ( m => m . WindowSize . Y ) . Name ( "WindowSize-Y" ) . Index ( 11 ) ;
126+ Map ( m => m . CRC32Stored ) . Index ( 12 ) ;
127+ Map ( m => m . CRC32Calculated ) . Index ( 13 ) ;
128+ Map ( m => m . bytes ) . Index ( 14 ) ;
126129 }
127130 }
128131}
Original file line number Diff line number Diff line change 55 <TargetFramework >net8.0</TargetFramework >
66 <ImplicitUsings >enable</ImplicitUsings >
77 <Nullable >enable</Nullable >
8- <Version >1.0.2 </Version >
8+ <Version >1.0.3 </Version >
99 <Authors >ogmini</Authors >
1010 <PackageProjectUrl >https://github.com/ogmini/Notepad-State-Library</PackageProjectUrl >
1111 </PropertyGroup >
You can’t perform that action at this time.
0 commit comments