commit 3db87ed23d758d9ce8019736887da1a5ffeb7ca9 Author: Your Name Date: Tue Jan 28 11:20:02 2025 +0300 first diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..f069a31 Binary files /dev/null and b/.DS_Store differ diff --git a/.idea/.idea.demo15012025/.idea/.gitignore b/.idea/.idea.demo15012025/.idea/.gitignore new file mode 100644 index 0000000..05437d4 --- /dev/null +++ b/.idea/.idea.demo15012025/.idea/.gitignore @@ -0,0 +1,13 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Rider ignored files +/modules.xml +/.idea.demo15012025.iml +/contentModel.xml +/projectSettingsUpdater.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/.idea.demo15012025/.idea/avalonia.xml b/.idea/.idea.demo15012025/.idea/avalonia.xml new file mode 100644 index 0000000..0116c7e --- /dev/null +++ b/.idea/.idea.demo15012025/.idea/avalonia.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/.idea/.idea.demo15012025/.idea/encodings.xml b/.idea/.idea.demo15012025/.idea/encodings.xml new file mode 100644 index 0000000..df87cf9 --- /dev/null +++ b/.idea/.idea.demo15012025/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/.idea.demo15012025/.idea/indexLayout.xml b/.idea/.idea.demo15012025/.idea/indexLayout.xml new file mode 100644 index 0000000..7b08163 --- /dev/null +++ b/.idea/.idea.demo15012025/.idea/indexLayout.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/.idea.demo15012025/.idea/vcs.xml b/.idea/.idea.demo15012025/.idea/vcs.xml new file mode 100644 index 0000000..d843f34 --- /dev/null +++ b/.idea/.idea.demo15012025/.idea/vcs.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/demo15012025.sln b/demo15012025.sln new file mode 100644 index 0000000..f7c77a7 --- /dev/null +++ b/demo15012025.sln @@ -0,0 +1,16 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "demo15012025", "demo15012025\demo15012025.csproj", "{F0AAD8ED-C3E3-43D4-81C5-8CA17457E498}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F0AAD8ED-C3E3-43D4-81C5-8CA17457E498}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F0AAD8ED-C3E3-43D4-81C5-8CA17457E498}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F0AAD8ED-C3E3-43D4-81C5-8CA17457E498}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F0AAD8ED-C3E3-43D4-81C5-8CA17457E498}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/demo15012025/.DS_Store b/demo15012025/.DS_Store new file mode 100644 index 0000000..f8bfa21 Binary files /dev/null and b/demo15012025/.DS_Store differ diff --git a/demo15012025/App.axaml b/demo15012025/App.axaml new file mode 100644 index 0000000..f763035 --- /dev/null +++ b/demo15012025/App.axaml @@ -0,0 +1,10 @@ + + + + + + + \ No newline at end of file diff --git a/demo15012025/App.axaml.cs b/demo15012025/App.axaml.cs new file mode 100644 index 0000000..0a08676 --- /dev/null +++ b/demo15012025/App.axaml.cs @@ -0,0 +1,23 @@ +using Avalonia; +using Avalonia.Controls.ApplicationLifetimes; +using Avalonia.Markup.Xaml; + +namespace demo15012025; + +public partial class App : Application +{ + public override void Initialize() + { + AvaloniaXamlLoader.Load(this); + } + + public override void OnFrameworkInitializationCompleted() + { + if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop) + { + desktop.MainWindow = new MainWindow(); + } + + base.OnFrameworkInitializationCompleted(); + } +} \ No newline at end of file diff --git a/demo15012025/Auth.axaml b/demo15012025/Auth.axaml new file mode 100644 index 0000000..9ee6a66 --- /dev/null +++ b/demo15012025/Auth.axaml @@ -0,0 +1,15 @@ + + + + + + + + + + + + diff --git a/demo15012025/OrganizatorWindow.axaml.cs b/demo15012025/OrganizatorWindow.axaml.cs new file mode 100644 index 0000000..d0bb3eb --- /dev/null +++ b/demo15012025/OrganizatorWindow.axaml.cs @@ -0,0 +1,49 @@ +using System; +using Avalonia; +using Avalonia.Controls; +using Avalonia.Interactivity; +using Avalonia.Markup.Xaml; +using Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.Mapping; + +namespace demo15012025; + +public partial class OrganizatorWindow : Window +{ + + public OrganizatorWindow() + { + var output = ""; + InitializeComponent(); + DateTime currentTime = DateTime.Now; + if (currentTime.Hour > 9 && currentTime.Hour < 11) + { + output = "Доброе утро!\n"; + } else if (currentTime.Hour > 11 && currentTime.Hour < 18) + { + output = "Добрый день!\n"; + } + else + { + output = "Добрый вечер!\n"; + } + + //todo передавай имя из прошлого окна ++ проблемы с output + } + + private void _3Button_OnClick(object? sender, RoutedEventArgs e) + { + RegJhuri regJhuri = new RegJhuri(); + regJhuri.ShowDialog(this); + } + + private void _2Button_OnClick(object? sender, RoutedEventArgs e) + { + throw new System.NotImplementedException(); + } + + private void _1Button_OnClick(object? sender, RoutedEventArgs e) + { + MainWindow mainWindow = new MainWindow(); + mainWindow.ShowDialog(this); + } +} \ No newline at end of file diff --git a/demo15012025/Program.cs b/demo15012025/Program.cs new file mode 100644 index 0000000..0012281 --- /dev/null +++ b/demo15012025/Program.cs @@ -0,0 +1,21 @@ +using Avalonia; +using System; + +namespace demo15012025; + +class Program +{ + // Initialization code. Don't use any Avalonia, third-party APIs or any + // SynchronizationContext-reliant code before AppMain is called: things aren't initialized + // yet and stuff might break. + [STAThread] + public static void Main(string[] args) => BuildAvaloniaApp() + .StartWithClassicDesktopLifetime(args); + + // Avalonia configuration, don't remove; also used by visual designer. + public static AppBuilder BuildAvaloniaApp() + => AppBuilder.Configure() + .UsePlatformDetect() + .WithInterFont() + .LogToTrace(); +} \ No newline at end of file diff --git a/demo15012025/RegJhuri.axaml b/demo15012025/RegJhuri.axaml new file mode 100644 index 0000000..e1b860a --- /dev/null +++ b/demo15012025/RegJhuri.axaml @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +