From 05f6b988cacc749d5c6d7b397063c32d84e1f3eb Mon Sep 17 00:00:00 2001 From: lionarius Date: Thu, 2 May 2024 23:19:10 +0300 Subject: [PATCH] lab2 --- KPO_Lab.sln | 11 +- Lab2/App.xaml | 9 ++ Lab2/App.xaml.cs | 11 ++ Lab2/Lab2.csproj | 18 +++ Lab2/src/AssemblyInfo.cs | 10 ++ Lab2/src/Form/CreateLawnmower.xaml | 41 ++++++ Lab2/src/Form/CreateLawnmower.xaml.cs | 95 ++++++++++++ Lab2/src/Form/CreateScissors.xaml | 41 ++++++ Lab2/src/Form/CreateScissors.xaml.cs | 95 ++++++++++++ Lab2/src/Form/CreateScythe.xaml | 41 ++++++ Lab2/src/Form/CreateScythe.xaml.cs | 96 ++++++++++++ Lab2/src/Form/CreateTrimmer.xaml | 41 ++++++ Lab2/src/Form/CreateTrimmer.xaml.cs | 96 ++++++++++++ Lab2/src/Form/MainWindow.xaml | 37 +++++ Lab2/src/Form/MainWindow.xaml.cs | 201 ++++++++++++++++++++++++++ Tool/src/Tool.cs | 2 +- 16 files changed, 843 insertions(+), 2 deletions(-) create mode 100644 Lab2/App.xaml create mode 100644 Lab2/App.xaml.cs create mode 100644 Lab2/Lab2.csproj create mode 100644 Lab2/src/AssemblyInfo.cs create mode 100644 Lab2/src/Form/CreateLawnmower.xaml create mode 100644 Lab2/src/Form/CreateLawnmower.xaml.cs create mode 100644 Lab2/src/Form/CreateScissors.xaml create mode 100644 Lab2/src/Form/CreateScissors.xaml.cs create mode 100644 Lab2/src/Form/CreateScythe.xaml create mode 100644 Lab2/src/Form/CreateScythe.xaml.cs create mode 100644 Lab2/src/Form/CreateTrimmer.xaml create mode 100644 Lab2/src/Form/CreateTrimmer.xaml.cs create mode 100644 Lab2/src/Form/MainWindow.xaml create mode 100644 Lab2/src/Form/MainWindow.xaml.cs diff --git a/KPO_Lab.sln b/KPO_Lab.sln index 94ebd7b..a963052 100644 --- a/KPO_Lab.sln +++ b/KPO_Lab.sln @@ -3,7 +3,12 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.7.34202.233 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tool", "Tool/Tool.csproj", "{73C85CBC-5C3A-4F43-8B10-1462B52F709E}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tool", "Tool\Tool.csproj", "{73C85CBC-5C3A-4F43-8B10-1462B52F709E}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lab2", "Lab2\Lab2.csproj", "{BC81743D-B4D3-4D25-A966-AD697757E98C}" + ProjectSection(ProjectDependencies) = postProject + {73C85CBC-5C3A-4F43-8B10-1462B52F709E} = {73C85CBC-5C3A-4F43-8B10-1462B52F709E} + EndProjectSection EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -15,6 +20,10 @@ Global {73C85CBC-5C3A-4F43-8B10-1462B52F709E}.Debug|Any CPU.Build.0 = Debug|Any CPU {73C85CBC-5C3A-4F43-8B10-1462B52F709E}.Release|Any CPU.ActiveCfg = Release|Any CPU {73C85CBC-5C3A-4F43-8B10-1462B52F709E}.Release|Any CPU.Build.0 = Release|Any CPU + {BC81743D-B4D3-4D25-A966-AD697757E98C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BC81743D-B4D3-4D25-A966-AD697757E98C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BC81743D-B4D3-4D25-A966-AD697757E98C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BC81743D-B4D3-4D25-A966-AD697757E98C}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Lab2/App.xaml b/Lab2/App.xaml new file mode 100644 index 0000000..94cb942 --- /dev/null +++ b/Lab2/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/Lab2/App.xaml.cs b/Lab2/App.xaml.cs new file mode 100644 index 0000000..e8c336f --- /dev/null +++ b/Lab2/App.xaml.cs @@ -0,0 +1,11 @@ +using System.Windows; + +namespace Lab2 +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} diff --git a/Lab2/Lab2.csproj b/Lab2/Lab2.csproj new file mode 100644 index 0000000..d40a68d --- /dev/null +++ b/Lab2/Lab2.csproj @@ -0,0 +1,18 @@ + + + + WinExe + net7.0-windows + enable + true + + + + + + + + + + + diff --git a/Lab2/src/AssemblyInfo.cs b/Lab2/src/AssemblyInfo.cs new file mode 100644 index 0000000..8b5504e --- /dev/null +++ b/Lab2/src/AssemblyInfo.cs @@ -0,0 +1,10 @@ +using System.Windows; + +[assembly: ThemeInfo( + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) +)] diff --git a/Lab2/src/Form/CreateLawnmower.xaml b/Lab2/src/Form/CreateLawnmower.xaml new file mode 100644 index 0000000..f79793b --- /dev/null +++ b/Lab2/src/Form/CreateLawnmower.xaml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + +