Skip to content

Commit

Permalink
use S1Table in S5ProtoSheet
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenyagusev committed Dec 20, 2019
1 parent d7a74ff commit 0c5d22a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/BookFx.Usage/S5ProtoSheet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ public static class S5ProtoSheet
{
public static byte[] Create()
{
byte[] preexistingTableBookBytes = S1Table.Create();
byte[] preexistingCalendarBookBytes = S3Calendar.Create(DateTime.Now.AddMonths(2).Year);
byte[] preexistingStyleBookBytes = S2Style.Create();

return Make
.Book()
.Add(Make.Sheet(preexistingCalendarBookBytes, "en").Name("First Sheet"))
.Add(Make.Sheet(preexistingCalendarBookBytes, "ru").Name("Second Sheet"))
.Add(Make.Sheet(preexistingStyleBookBytes).Name("Third Sheet"))
.Add(Make.Sheet(preexistingTableBookBytes).Name("First Sheet"))
.Add(Make.Sheet(preexistingCalendarBookBytes, "en").Name("Second Sheet"))
.Add(Make.Sheet(preexistingCalendarBookBytes, "ru").Name("Third Sheet"))
.Add(Make.Value("I am a regular sheet.").ToSheet().Name("Fourth Sheet"))
.ToBytes();
}
Expand Down

0 comments on commit 0c5d22a

Please sign in to comment.