From 38db4c11d2e77c6f10b1bcf505e97e0948589ed0 Mon Sep 17 00:00:00 2001 From: DavidMakarov Date: Fri, 4 Oct 2024 11:22:00 +0400 Subject: [PATCH] add TestingForm --- Components/Visual/UserControlIntegerInput.cs | 3 +- ComponentsProgramming.sln | 6 + TestingForm/FormMain.Designer.cs | 45 +++++++ TestingForm/FormMain.cs | 10 ++ TestingForm/FormMain.resx | 120 +++++++++++++++++++ TestingForm/Program.cs | 17 +++ TestingForm/TestingForm.csproj | 15 +++ 7 files changed, 215 insertions(+), 1 deletion(-) create mode 100644 TestingForm/FormMain.Designer.cs create mode 100644 TestingForm/FormMain.cs create mode 100644 TestingForm/FormMain.resx create mode 100644 TestingForm/Program.cs create mode 100644 TestingForm/TestingForm.csproj diff --git a/Components/Visual/UserControlIntegerInput.cs b/Components/Visual/UserControlIntegerInput.cs index 1b0d204..b6f982c 100644 --- a/Components/Visual/UserControlIntegerInput.cs +++ b/Components/Visual/UserControlIntegerInput.cs @@ -1,4 +1,5 @@ -using System; +using Components.Exceptions; +using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; diff --git a/ComponentsProgramming.sln b/ComponentsProgramming.sln index b8d9e2a..af87b6f 100644 --- a/ComponentsProgramming.sln +++ b/ComponentsProgramming.sln @@ -5,6 +5,8 @@ VisualStudioVersion = 17.9.34728.123 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Components", "Components\Components.csproj", "{260D3E8C-3599-49F1-BF42-64A92DD0FB62}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestingForm", "TestingForm\TestingForm.csproj", "{4F4882A1-4DF1-4BC3-B022-9935E70E5552}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -15,6 +17,10 @@ Global {260D3E8C-3599-49F1-BF42-64A92DD0FB62}.Debug|Any CPU.Build.0 = Debug|Any CPU {260D3E8C-3599-49F1-BF42-64A92DD0FB62}.Release|Any CPU.ActiveCfg = Release|Any CPU {260D3E8C-3599-49F1-BF42-64A92DD0FB62}.Release|Any CPU.Build.0 = Release|Any CPU + {4F4882A1-4DF1-4BC3-B022-9935E70E5552}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4F4882A1-4DF1-4BC3-B022-9935E70E5552}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4F4882A1-4DF1-4BC3-B022-9935E70E5552}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4F4882A1-4DF1-4BC3-B022-9935E70E5552}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/TestingForm/FormMain.Designer.cs b/TestingForm/FormMain.Designer.cs new file mode 100644 index 0000000..05ec2ff --- /dev/null +++ b/TestingForm/FormMain.Designer.cs @@ -0,0 +1,45 @@ +namespace TestingForm +{ + partial class FormMain + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + SuspendLayout(); + // + // FormMain + // + AutoScaleDimensions = new SizeF(7F, 15F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(800, 450); + Name = "FormMain"; + Text = "cB"; + ResumeLayout(false); + } + + #endregion + } +} diff --git a/TestingForm/FormMain.cs b/TestingForm/FormMain.cs new file mode 100644 index 0000000..80839c4 --- /dev/null +++ b/TestingForm/FormMain.cs @@ -0,0 +1,10 @@ +namespace TestingForm +{ + public partial class FormMain : Form + { + public FormMain() + { + InitializeComponent(); + } + } +} diff --git a/TestingForm/FormMain.resx b/TestingForm/FormMain.resx new file mode 100644 index 0000000..af32865 --- /dev/null +++ b/TestingForm/FormMain.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/TestingForm/Program.cs b/TestingForm/Program.cs new file mode 100644 index 0000000..47a2336 --- /dev/null +++ b/TestingForm/Program.cs @@ -0,0 +1,17 @@ +namespace TestingForm +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + // To customize application configuration such as set high DPI settings or default font, + // see https://aka.ms/applicationconfiguration. + ApplicationConfiguration.Initialize(); + Application.Run(new FormMain()); + } + } +} \ No newline at end of file diff --git a/TestingForm/TestingForm.csproj b/TestingForm/TestingForm.csproj new file mode 100644 index 0000000..5a248b2 --- /dev/null +++ b/TestingForm/TestingForm.csproj @@ -0,0 +1,15 @@ + + + + WinExe + net7.0-windows + enable + true + enable + + + + + + + \ No newline at end of file