From b8bbd43b281657fadd4bf1c1d1df55c9183597c4 Mon Sep 17 00:00:00 2001 From: KP9lKk Date: Thu, 26 Dec 2024 10:39:55 +0300 Subject: [PATCH] init v2 --- AppForKids.sln | 16 ++++++++ AppForKids/App.axaml | 11 ++++++ AppForKids/App.axaml.cs | 23 +++++++++++ AppForKids/AppForKids.csproj | 29 ++++++++++++++ AppForKids/MainWindow.axaml | 19 +++++++++ AppForKids/MainWindow.axaml.cs | 36 +++++++++++++++++ AppForKids/Program.cs | 21 ++++++++++ AppForKids/Registration.axaml | 18 +++++++++ AppForKids/Registration.axaml.cs | 47 +++++++++++++++++++++++ AppForKids/Score.axaml | 25 ++++++++++++ AppForKids/Score.axaml.cs | 21 ++++++++++ AppForKids/app.manifest | 18 +++++++++ AppForKids/assets/dotnet-bot_branded.png | Bin 0 -> 26655 bytes AppForKids/models/KidsAppDbContext.cs | 43 +++++++++++++++++++++ AppForKids/models/User.cs | 17 ++++++++ 15 files changed, 344 insertions(+) create mode 100644 AppForKids.sln create mode 100644 AppForKids/App.axaml create mode 100644 AppForKids/App.axaml.cs create mode 100644 AppForKids/AppForKids.csproj create mode 100644 AppForKids/MainWindow.axaml create mode 100644 AppForKids/MainWindow.axaml.cs create mode 100644 AppForKids/Program.cs create mode 100644 AppForKids/Registration.axaml create mode 100644 AppForKids/Registration.axaml.cs create mode 100644 AppForKids/Score.axaml create mode 100644 AppForKids/Score.axaml.cs create mode 100644 AppForKids/app.manifest create mode 100644 AppForKids/assets/dotnet-bot_branded.png create mode 100644 AppForKids/models/KidsAppDbContext.cs create mode 100644 AppForKids/models/User.cs diff --git a/AppForKids.sln b/AppForKids.sln new file mode 100644 index 0000000..ed81e30 --- /dev/null +++ b/AppForKids.sln @@ -0,0 +1,16 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppForKids", "AppForKids\AppForKids.csproj", "{4E7B7257-224A-465E-84C9-AF7DC5D9FF3E}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4E7B7257-224A-465E-84C9-AF7DC5D9FF3E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4E7B7257-224A-465E-84C9-AF7DC5D9FF3E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4E7B7257-224A-465E-84C9-AF7DC5D9FF3E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4E7B7257-224A-465E-84C9-AF7DC5D9FF3E}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/AppForKids/App.axaml b/AppForKids/App.axaml new file mode 100644 index 0000000..c349c73 --- /dev/null +++ b/AppForKids/App.axaml @@ -0,0 +1,11 @@ + + + + + + + + \ No newline at end of file diff --git a/AppForKids/App.axaml.cs b/AppForKids/App.axaml.cs new file mode 100644 index 0000000..abf90b5 --- /dev/null +++ b/AppForKids/App.axaml.cs @@ -0,0 +1,23 @@ +using Avalonia; +using Avalonia.Controls.ApplicationLifetimes; +using Avalonia.Markup.Xaml; + +namespace AppForKids; + +public partial class App : Application +{ + public override void Initialize() + { + AvaloniaXamlLoader.Load(this); + } + + public override void OnFrameworkInitializationCompleted() + { + if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop) + { + desktop.MainWindow = new Registration(); + } + + base.OnFrameworkInitializationCompleted(); + } +} \ No newline at end of file diff --git a/AppForKids/AppForKids.csproj b/AppForKids/AppForKids.csproj new file mode 100644 index 0000000..36e431a --- /dev/null +++ b/AppForKids/AppForKids.csproj @@ -0,0 +1,29 @@ + + + WinExe + net8.0 + enable + true + app.manifest + true + + + + + + + + + + + None + All + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + diff --git a/AppForKids/MainWindow.axaml b/AppForKids/MainWindow.axaml new file mode 100644 index 0000000..b6a3dc9 --- /dev/null +++ b/AppForKids/MainWindow.axaml @@ -0,0 +1,19 @@ + + + + + +