Thunberball added to KindOfLotto

This commit is contained in:
onyx-and-iris 2024-09-26 21:11:27 +01:00
parent 7ce6d550ea
commit 828b5171d7
3 changed files with 9 additions and 2 deletions

View File

@ -5,5 +5,6 @@
Uk,
Euro,
SetForLife,
Thunderball,
}
}

View File

@ -7,9 +7,9 @@
<VerticalStackLayout
Padding="30,0"
Spacing="25">
<Picker x:Name="LottoPicker" Title="Kind of Lotto" SelectedIndexChanged="LottoPicker_SelectedIndexChanged" />
<Picker x:Name="LottoPicker" Title="Kind of Lottery" SelectedIndexChanged="LottoPicker_SelectedIndexChanged" />
<Label x:Name="Numbers" Text="Numbers: (Click Spin button to generate)" />
<Label x:Name="NumbersLabel" Text="Click Spin button to generate" HorizontalOptions="Center" FontSize="Medium" />
<Button x:Name="SpinButton" Text="Spin" Clicked="SpinButton_Clicked"/>
</VerticalStackLayout>

6
Lottery/Numbers.cs Normal file
View File

@ -0,0 +1,6 @@
namespace Lottery
{
internal record Numbers(KindOfLotto Kind, List<int> Normal);
internal record NumbersWithSpecial(KindOfLotto Kind, List<int> Normal, List<int> Special) : Numbers(Kind, Normal);
}