From 1ba0759d3c47035b022a6f22e137eaacb2f0b4d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=91=D0=B0=D0=BA=D0=B0?= =?UTF-8?q?=D0=BB=D1=8C=D1=81=D0=BA=D0=B0=D1=8F?= Date: Sat, 30 Nov 2024 20:39:18 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=B2=D1=81=D1=82=D0=BE=20?= =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=D0=B0=20=D0=BD=D0=BE?= =?UTF-8?q?=D0=B2=D1=8B=D0=B9=20=D0=BF=D1=80=D0=BE=D0=B5=D0=BA=D1=82=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=204=20=D0=BB=D0=B0=D0=B1=D1=8B=20=D1=81?= =?UTF-8?q?=D0=BB=D1=83=D1=87=D0=B0=D0=B9=D0=BD=D0=BE=20=D0=B2=20=D1=82?= =?UTF-8?q?=D1=80=D0=B5=D1=82=D1=8C=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Forms/SingletonClass.cs | 35 ----- .../FormPlugins/FormMain.Designer.cs | 39 ++++++ .../FormPlugins/FormMain.cs | 10 ++ .../FormPlugins/FormMain.resx | 120 ++++++++++++++++++ .../FormPlugins/FormPlugins.csproj | 11 ++ UserComponentsOption19/FormPlugins/Program.cs | 17 +++ 6 files changed, 197 insertions(+), 35 deletions(-) delete mode 100644 UserComponentsOption19/AppShopInternetOption19/Forms/SingletonClass.cs create mode 100644 UserComponentsOption19/FormPlugins/FormMain.Designer.cs create mode 100644 UserComponentsOption19/FormPlugins/FormMain.cs create mode 100644 UserComponentsOption19/FormPlugins/FormMain.resx create mode 100644 UserComponentsOption19/FormPlugins/FormPlugins.csproj create mode 100644 UserComponentsOption19/FormPlugins/Program.cs diff --git a/UserComponentsOption19/AppShopInternetOption19/Forms/SingletonClass.cs b/UserComponentsOption19/AppShopInternetOption19/Forms/SingletonClass.cs deleted file mode 100644 index 4043ea9..0000000 --- a/UserComponentsOption19/AppShopInternetOption19/Forms/SingletonClass.cs +++ /dev/null @@ -1,35 +0,0 @@ -using ShopContracts.StorageContracts; -using ShopDataBaseImplements.Implements; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace AppShopInternetOption19.Forms -{ - public static class SingletonClass - { - private static IOrderStorage? _orderStorage = null; - public static IOrderStorage OrderStorage - { - get - { - if (_orderStorage == null) - _orderStorage = new OrderStorage(); - return _orderStorage; - } - } - - private static IOrderStatusStorage? _orderStatusStorage = null; - public static IOrderStatusStorage OrderStatusStorage - { - get - { - if (_orderStatusStorage == null) - _orderStatusStorage = new OrderStatusStorage(); - return _orderStatusStorage; - } - } - } -} diff --git a/UserComponentsOption19/FormPlugins/FormMain.Designer.cs b/UserComponentsOption19/FormPlugins/FormMain.Designer.cs new file mode 100644 index 0000000..12879cc --- /dev/null +++ b/UserComponentsOption19/FormPlugins/FormMain.Designer.cs @@ -0,0 +1,39 @@ +namespace FormPlugins +{ + 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() + { + this.components = new System.ComponentModel.Container(); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(800, 450); + this.Text = "Form1"; + } + + #endregion + } +} diff --git a/UserComponentsOption19/FormPlugins/FormMain.cs b/UserComponentsOption19/FormPlugins/FormMain.cs new file mode 100644 index 0000000..c4aed27 --- /dev/null +++ b/UserComponentsOption19/FormPlugins/FormMain.cs @@ -0,0 +1,10 @@ +namespace FormPlugins +{ + public partial class FormMain : Form + { + public FormMain() + { + InitializeComponent(); + } + } +} diff --git a/UserComponentsOption19/FormPlugins/FormMain.resx b/UserComponentsOption19/FormPlugins/FormMain.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/UserComponentsOption19/FormPlugins/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/UserComponentsOption19/FormPlugins/FormPlugins.csproj b/UserComponentsOption19/FormPlugins/FormPlugins.csproj new file mode 100644 index 0000000..663fdb8 --- /dev/null +++ b/UserComponentsOption19/FormPlugins/FormPlugins.csproj @@ -0,0 +1,11 @@ + + + + WinExe + net8.0-windows + enable + true + enable + + + \ No newline at end of file diff --git a/UserComponentsOption19/FormPlugins/Program.cs b/UserComponentsOption19/FormPlugins/Program.cs new file mode 100644 index 0000000..8bafd6f --- /dev/null +++ b/UserComponentsOption19/FormPlugins/Program.cs @@ -0,0 +1,17 @@ +namespace FormPlugins +{ + 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