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