From a32b1a65a4d1285134ef2033c7d2ba2928497199 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Thu, 26 Sep 2024 03:54:20 +0100 Subject: [PATCH] Add project files. --- Lottery.sln | 27 ++ Lottery/App.xaml | 14 + Lottery/App.xaml.cs | 12 + Lottery/AppShell.xaml | 15 + Lottery/AppShell.xaml.cs | 10 + Lottery/Generator.cs | 53 +++ Lottery/IGenerator.cs | 12 + Lottery/KindOfLotto.cs | 9 + Lottery/Lottery.csproj | 65 +++ Lottery/MainPage.xaml | 18 + Lottery/MainPage.xaml.cs | 31 ++ Lottery/MauiProgram.cs | 25 + Lottery/Platforms/Android/AndroidManifest.xml | 6 + Lottery/Platforms/Android/MainActivity.cs | 11 + Lottery/Platforms/Android/MainApplication.cs | 16 + .../Android/Resources/values/colors.xml | 6 + Lottery/Platforms/MacCatalyst/AppDelegate.cs | 10 + .../Platforms/MacCatalyst/Entitlements.plist | 14 + Lottery/Platforms/MacCatalyst/Info.plist | 38 ++ Lottery/Platforms/MacCatalyst/Program.cs | 16 + Lottery/Platforms/Tizen/Main.cs | 17 + Lottery/Platforms/Tizen/tizen-manifest.xml | 15 + Lottery/Platforms/Windows/App.xaml | 8 + Lottery/Platforms/Windows/App.xaml.cs | 25 + .../Platforms/Windows/Package.appxmanifest | 46 ++ Lottery/Platforms/Windows/app.manifest | 15 + Lottery/Platforms/iOS/AppDelegate.cs | 10 + Lottery/Platforms/iOS/Info.plist | 32 ++ Lottery/Platforms/iOS/Program.cs | 16 + .../iOS/Resources/PrivacyInfo.xcprivacy | 51 +++ Lottery/Properties/launchSettings.json | 8 + Lottery/Resources/AppIcon/appicon.svg | 4 + Lottery/Resources/AppIcon/appiconfg.svg | 8 + Lottery/Resources/Fonts/OpenSans-Regular.ttf | Bin 0 -> 107280 bytes Lottery/Resources/Fonts/OpenSans-Semibold.ttf | Bin 0 -> 111168 bytes Lottery/Resources/Images/dotnet_bot.png | Bin 0 -> 69811 bytes Lottery/Resources/Raw/AboutAssets.txt | 15 + Lottery/Resources/Splash/splash.svg | 8 + Lottery/Resources/Styles/Colors.xaml | 45 ++ Lottery/Resources/Styles/Styles.xaml | 427 ++++++++++++++++++ 40 files changed, 1158 insertions(+) create mode 100644 Lottery.sln create mode 100644 Lottery/App.xaml create mode 100644 Lottery/App.xaml.cs create mode 100644 Lottery/AppShell.xaml create mode 100644 Lottery/AppShell.xaml.cs create mode 100644 Lottery/Generator.cs create mode 100644 Lottery/IGenerator.cs create mode 100644 Lottery/KindOfLotto.cs create mode 100644 Lottery/Lottery.csproj create mode 100644 Lottery/MainPage.xaml create mode 100644 Lottery/MainPage.xaml.cs create mode 100644 Lottery/MauiProgram.cs create mode 100644 Lottery/Platforms/Android/AndroidManifest.xml create mode 100644 Lottery/Platforms/Android/MainActivity.cs create mode 100644 Lottery/Platforms/Android/MainApplication.cs create mode 100644 Lottery/Platforms/Android/Resources/values/colors.xml create mode 100644 Lottery/Platforms/MacCatalyst/AppDelegate.cs create mode 100644 Lottery/Platforms/MacCatalyst/Entitlements.plist create mode 100644 Lottery/Platforms/MacCatalyst/Info.plist create mode 100644 Lottery/Platforms/MacCatalyst/Program.cs create mode 100644 Lottery/Platforms/Tizen/Main.cs create mode 100644 Lottery/Platforms/Tizen/tizen-manifest.xml create mode 100644 Lottery/Platforms/Windows/App.xaml create mode 100644 Lottery/Platforms/Windows/App.xaml.cs create mode 100644 Lottery/Platforms/Windows/Package.appxmanifest create mode 100644 Lottery/Platforms/Windows/app.manifest create mode 100644 Lottery/Platforms/iOS/AppDelegate.cs create mode 100644 Lottery/Platforms/iOS/Info.plist create mode 100644 Lottery/Platforms/iOS/Program.cs create mode 100644 Lottery/Platforms/iOS/Resources/PrivacyInfo.xcprivacy create mode 100644 Lottery/Properties/launchSettings.json create mode 100644 Lottery/Resources/AppIcon/appicon.svg create mode 100644 Lottery/Resources/AppIcon/appiconfg.svg create mode 100644 Lottery/Resources/Fonts/OpenSans-Regular.ttf create mode 100644 Lottery/Resources/Fonts/OpenSans-Semibold.ttf create mode 100644 Lottery/Resources/Images/dotnet_bot.png create mode 100644 Lottery/Resources/Raw/AboutAssets.txt create mode 100644 Lottery/Resources/Splash/splash.svg create mode 100644 Lottery/Resources/Styles/Colors.xaml create mode 100644 Lottery/Resources/Styles/Styles.xaml diff --git a/Lottery.sln b/Lottery.sln new file mode 100644 index 0000000..16d1618 --- /dev/null +++ b/Lottery.sln @@ -0,0 +1,27 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35222.181 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lottery", "Lottery\Lottery.csproj", "{1695D2A5-8733-4FC4-A090-361AB9E6B030}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {1695D2A5-8733-4FC4-A090-361AB9E6B030}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1695D2A5-8733-4FC4-A090-361AB9E6B030}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1695D2A5-8733-4FC4-A090-361AB9E6B030}.Debug|Any CPU.Deploy.0 = Debug|Any CPU + {1695D2A5-8733-4FC4-A090-361AB9E6B030}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1695D2A5-8733-4FC4-A090-361AB9E6B030}.Release|Any CPU.Build.0 = Release|Any CPU + {1695D2A5-8733-4FC4-A090-361AB9E6B030}.Release|Any CPU.Deploy.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {DED38B08-45CE-4155-8CAC-05742FBF5375} + EndGlobalSection +EndGlobal diff --git a/Lottery/App.xaml b/Lottery/App.xaml new file mode 100644 index 0000000..4793086 --- /dev/null +++ b/Lottery/App.xaml @@ -0,0 +1,14 @@ + + + + + + + + + + + diff --git a/Lottery/App.xaml.cs b/Lottery/App.xaml.cs new file mode 100644 index 0000000..4bf6709 --- /dev/null +++ b/Lottery/App.xaml.cs @@ -0,0 +1,12 @@ +namespace Lottery +{ + public partial class App : Application + { + public App() + { + InitializeComponent(); + + MainPage = new AppShell(); + } + } +} diff --git a/Lottery/AppShell.xaml b/Lottery/AppShell.xaml new file mode 100644 index 0000000..cc5706d --- /dev/null +++ b/Lottery/AppShell.xaml @@ -0,0 +1,15 @@ + + + + + + diff --git a/Lottery/AppShell.xaml.cs b/Lottery/AppShell.xaml.cs new file mode 100644 index 0000000..3f67ae2 --- /dev/null +++ b/Lottery/AppShell.xaml.cs @@ -0,0 +1,10 @@ +namespace Lottery +{ + public partial class AppShell : Shell + { + public AppShell() + { + InitializeComponent(); + } + } +} diff --git a/Lottery/Generator.cs b/Lottery/Generator.cs new file mode 100644 index 0000000..879d715 --- /dev/null +++ b/Lottery/Generator.cs @@ -0,0 +1,53 @@ +namespace Lottery +{ + /// + /// + /// + class UKGenerator : IGenerator + { + public int Count { get; } = 6; + + public List Generate() + { + List numbers = []; + for (int i = 0; i < Count; i++) + { + numbers.Add(Random.Shared.Next(60)); + } + return numbers; + } + } + + /// + /// + /// + class EuroGenerator : IGenerator + { + public int Count { get; } = 8; + + public List Generate() + { + List numbers = []; + for (int i = 0; i < Count; i++) + { + numbers.Add(Random.Shared.Next(60)); + } + return numbers; + } + } + + class SetForLifeGenerator : IGenerator + { + public int Count { get; } = 10; + + public List Generate() + { + List numbers = []; + for (int i = 0; i < Count; i++) + { + numbers.Add(Random.Shared.Next(60)); + } + return numbers; + } + } +} diff --git a/Lottery/IGenerator.cs b/Lottery/IGenerator.cs new file mode 100644 index 0000000..4892400 --- /dev/null +++ b/Lottery/IGenerator.cs @@ -0,0 +1,12 @@ +namespace Lottery +{ + /// + /// + /// + interface IGenerator + { + int Count { get; } + + List Generate(); + } +} diff --git a/Lottery/KindOfLotto.cs b/Lottery/KindOfLotto.cs new file mode 100644 index 0000000..49b9944 --- /dev/null +++ b/Lottery/KindOfLotto.cs @@ -0,0 +1,9 @@ +namespace Lottery +{ + enum KindOfLotto : int + { + Uk, + Euro, + SetForLife, + } +} diff --git a/Lottery/Lottery.csproj b/Lottery/Lottery.csproj new file mode 100644 index 0000000..dea6831 --- /dev/null +++ b/Lottery/Lottery.csproj @@ -0,0 +1,65 @@ + + + + net8.0-android;net8.0-ios;net8.0-maccatalyst + $(TargetFrameworks);net8.0-windows10.0.19041.0 + + + + + + + Exe + Lottery + true + true + enable + enable + + + Lottery + + + com.companyname.lottery + + + 1.0 + 1 + + 11.0 + 13.1 + 21.0 + 10.0.17763.0 + 10.0.17763.0 + 6.5 + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Lottery/MainPage.xaml b/Lottery/MainPage.xaml new file mode 100644 index 0000000..e693811 --- /dev/null +++ b/Lottery/MainPage.xaml @@ -0,0 +1,18 @@ + + + + + + + +