diff --git a/Lottery/App.xaml.cs b/Lottery/App.xaml.cs
index 4bf6709..eca7000 100644
--- a/Lottery/App.xaml.cs
+++ b/Lottery/App.xaml.cs
@@ -8,5 +8,18 @@
MainPage = new AppShell();
}
+
+ protected override Window CreateWindow(IActivationState? activationState)
+ {
+ var window = base.CreateWindow(activationState);
+
+ const int newWidth = 800;
+ const int newHeight = 300;
+
+ window.Width = newWidth;
+ window.Height = newHeight;
+
+ return window;
+ }
}
}
diff --git a/Lottery/AppShell.xaml b/Lottery/AppShell.xaml
index cc5706d..6eefca0 100644
--- a/Lottery/AppShell.xaml
+++ b/Lottery/AppShell.xaml
@@ -5,10 +5,10 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:Lottery"
Shell.FlyoutBehavior="Disabled"
- Title="Lottery">
+ Title="">
diff --git a/Lottery/Generator.cs b/Lottery/Generator.cs
index 879d715..89950e1 100644
--- a/Lottery/Generator.cs
+++ b/Lottery/Generator.cs
@@ -36,6 +36,9 @@
}
}
+ ///
+ ///
+ ///
class SetForLifeGenerator : IGenerator
{
public int Count { get; } = 10;
diff --git a/Lottery/MainPage.xaml b/Lottery/MainPage.xaml
index e693811..001ae64 100644
--- a/Lottery/MainPage.xaml
+++ b/Lottery/MainPage.xaml
@@ -9,7 +9,7 @@
Spacing="25">
-
+
diff --git a/Lottery/MainPage.xaml.cs b/Lottery/MainPage.xaml.cs
index 44f828c..f0b3365 100644
--- a/Lottery/MainPage.xaml.cs
+++ b/Lottery/MainPage.xaml.cs
@@ -2,7 +2,7 @@
{
public partial class MainPage : ContentPage
{
- List generators = [new UKGenerator(), new EuroGenerator(), new SetForLifeGenerator()];
+ readonly List generators = [new UKGenerator(), new EuroGenerator(), new SetForLifeGenerator()];
IGenerator generator;
const KindOfLotto DEFAULT_GENERATOR = KindOfLotto.Uk;