Added ConcertTicket

This commit is contained in:
TheXamlGuy
2024-06-09 13:39:50 +01:00
parent 54ae4b6107
commit 727bf877e9
2 changed files with 45 additions and 1 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ public partial class App : Application
.AddConfiguration("Item:Server", ItemConfiguration.Server)
.AddConfiguration("Item:Education Record", ItemConfiguration.EducationRecord)
.AddConfiguration("Item:Travel Documents", ItemConfiguration.TravelDocuments)
.AddConfiguration("Item:Concert Ticket", ItemConfiguration.ConcertTicket)
.ConfigureServices((context, services) =>
{
services.AddAvalonia();
+44
View File
@@ -187,6 +187,50 @@ public record ItemConfiguration
}
};
public static ItemConfiguration ConcertTicket => new()
{
Sections = new List<ItemSectionConfiguration>
{
new ItemSectionConfiguration
{
Entries = new List<ItemEntryConfiguration>
{
new TextEntryConfiguration
{
Label = "Artist"
},
new DateEntryConfiguration
{
Label = "Date"
},
new TextEntryConfiguration
{
Label = "Time"
},
new TextEntryConfiguration
{
Label = "Venue"
},
new TextEntryConfiguration
{
Label = "Seat"
},
new NumberEntryConfiguration
{
Label = "Price"
},
new AttachmentEntryConfiguration
{
Label = "Ticket"
},
new MultilineTextEntryConfiguration
{
Label = "Notes"
}
}
}
}
};
public static ItemConfiguration DrivingLicence => new()
{