Added ConcertTicket
This commit is contained in:
@@ -47,7 +47,7 @@ public partial class App : Application
|
|||||||
.AddConfiguration("Item:Server", ItemConfiguration.Server)
|
.AddConfiguration("Item:Server", ItemConfiguration.Server)
|
||||||
.AddConfiguration("Item:Education Record", ItemConfiguration.EducationRecord)
|
.AddConfiguration("Item:Education Record", ItemConfiguration.EducationRecord)
|
||||||
.AddConfiguration("Item:Travel Documents", ItemConfiguration.TravelDocuments)
|
.AddConfiguration("Item:Travel Documents", ItemConfiguration.TravelDocuments)
|
||||||
|
.AddConfiguration("Item:Concert Ticket", ItemConfiguration.ConcertTicket)
|
||||||
.ConfigureServices((context, services) =>
|
.ConfigureServices((context, services) =>
|
||||||
{
|
{
|
||||||
services.AddAvalonia();
|
services.AddAvalonia();
|
||||||
|
|||||||
@@ -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()
|
public static ItemConfiguration DrivingLicence => new()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user