diff --git a/BlogDataModels/BlogDatabaseImplement/BlogDatabase.cs b/BlogDataModels/BlogDatabaseImplement/BlogDatabase.cs
index f64ee12..bfbc80c 100644
--- a/BlogDataModels/BlogDatabaseImplement/BlogDatabase.cs
+++ b/BlogDataModels/BlogDatabaseImplement/BlogDatabase.cs
@@ -14,7 +14,7 @@ namespace BlogDatabase
{
if (optionsBuilder.IsConfigured == false)
{
- optionsBuilder.UseNpgsql("Host=localhost;Port=5432;Database=BlogSubd;Username=postgres;Password=postgres");
+ optionsBuilder.UseNpgsql("Host=192.168.1.120;Port=5432;Database=BlogSubd;Username=postgres;Password=postgres");
}
base.OnConfiguring(optionsBuilder);
}
diff --git a/BlogDataModels/BlogDatabaseImplement/Migrations/20230906180114_mig4.Designer.cs b/BlogDataModels/BlogDatabaseImplement/Migrations/20230909194723_mig7.Designer.cs
similarity index 99%
rename from BlogDataModels/BlogDatabaseImplement/Migrations/20230906180114_mig4.Designer.cs
rename to BlogDataModels/BlogDatabaseImplement/Migrations/20230909194723_mig7.Designer.cs
index 0e435bb..71dbc82 100644
--- a/BlogDataModels/BlogDatabaseImplement/Migrations/20230906180114_mig4.Designer.cs
+++ b/BlogDataModels/BlogDatabaseImplement/Migrations/20230909194723_mig7.Designer.cs
@@ -12,8 +12,8 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
namespace BlogDatabase.Migrations
{
[DbContext(typeof(BlogDatabase))]
- [Migration("20230906180114_mig4")]
- partial class mig4
+ [Migration("20230909194723_mig7")]
+ partial class mig7
{
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
diff --git a/BlogDataModels/BlogDatabaseImplement/Migrations/20230906180114_mig4.cs b/BlogDataModels/BlogDatabaseImplement/Migrations/20230909194723_mig7.cs
similarity index 99%
rename from BlogDataModels/BlogDatabaseImplement/Migrations/20230906180114_mig4.cs
rename to BlogDataModels/BlogDatabaseImplement/Migrations/20230909194723_mig7.cs
index 8fecb70..c167223 100644
--- a/BlogDataModels/BlogDatabaseImplement/Migrations/20230906180114_mig4.cs
+++ b/BlogDataModels/BlogDatabaseImplement/Migrations/20230909194723_mig7.cs
@@ -7,7 +7,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
namespace BlogDatabase.Migrations
{
///
- public partial class mig4 : Migration
+ public partial class mig7 : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
diff --git a/KOP Ismailov R.I/KOP Ismailov R.I..sln b/KOP Ismailov R.I/KOP Ismailov R.I..sln
new file mode 100644
index 0000000..a0e21eb
--- /dev/null
+++ b/KOP Ismailov R.I/KOP Ismailov R.I..sln
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.3.32901.215
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KOP Ismailov R.I.", "..\KOP Ismailov R.I\KOP Ismailov R.I\KOP Ismailov R.I..csproj", "{CE98A54B-30C0-42D9-9687-22E8279522F0}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {CE98A54B-30C0-42D9-9687-22E8279522F0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {CE98A54B-30C0-42D9-9687-22E8279522F0}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {CE98A54B-30C0-42D9-9687-22E8279522F0}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {CE98A54B-30C0-42D9-9687-22E8279522F0}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {2BCCBA16-B24C-4D18-908B-0DB66FEE6B96}
+ EndGlobalSection
+EndGlobal
diff --git a/KOP Ismailov R.I/KOP Ismailov R.I/Form1.Designer.cs b/KOP Ismailov R.I/KOP Ismailov R.I/Form1.Designer.cs
new file mode 100644
index 0000000..979b4cc
--- /dev/null
+++ b/KOP Ismailov R.I/KOP Ismailov R.I/Form1.Designer.cs
@@ -0,0 +1,46 @@
+namespace KOP_Ismailov_R.I_
+{
+ partial class Form1
+ {
+ ///
+ /// 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.SuspendLayout();
+ //
+ // Form1
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(800, 450);
+ this.Name = "Form1";
+ this.Text = "Form1";
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/KOP Ismailov R.I/KOP Ismailov R.I/Form1.cs b/KOP Ismailov R.I/KOP Ismailov R.I/Form1.cs
new file mode 100644
index 0000000..daa66d5
--- /dev/null
+++ b/KOP Ismailov R.I/KOP Ismailov R.I/Form1.cs
@@ -0,0 +1,10 @@
+namespace KOP_Ismailov_R.I_
+{
+ public partial class Form1 : Form
+ {
+ public Form1()
+ {
+ InitializeComponent();
+ }
+ }
+}
\ No newline at end of file
diff --git a/KOP Ismailov R.I/KOP Ismailov R.I/Form1.resx b/KOP Ismailov R.I/KOP Ismailov R.I/Form1.resx
new file mode 100644
index 0000000..f298a7b
--- /dev/null
+++ b/KOP Ismailov R.I/KOP Ismailov R.I/Form1.resx
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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/KOP Ismailov R.I/KOP Ismailov R.I/KOP Ismailov R.I..csproj b/KOP Ismailov R.I/KOP Ismailov R.I/KOP Ismailov R.I..csproj
new file mode 100644
index 0000000..cdf142c
--- /dev/null
+++ b/KOP Ismailov R.I/KOP Ismailov R.I/KOP Ismailov R.I..csproj
@@ -0,0 +1,12 @@
+
+
+
+ WinExe
+ net6.0-windows
+ KOP_Ismailov_R.I_
+ enable
+ true
+ enable
+
+
+
\ No newline at end of file
diff --git a/KOP Ismailov R.I/KOP Ismailov R.I/ListElement.Designer.cs b/KOP Ismailov R.I/KOP Ismailov R.I/ListElement.Designer.cs
new file mode 100644
index 0000000..0814fef
--- /dev/null
+++ b/KOP Ismailov R.I/KOP Ismailov R.I/ListElement.Designer.cs
@@ -0,0 +1,57 @@
+namespace KOP_Ismailov_R.I_
+{
+ partial class ListElement
+ {
+ ///
+ /// Обязательная переменная конструктора.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Освободить все используемые ресурсы.
+ ///
+ /// истинно, если управляемый ресурс должен быть удален; иначе ложно.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Код, автоматически созданный конструктором компонентов
+
+ ///
+ /// Требуемый метод для поддержки конструктора — не изменяйте
+ /// содержимое этого метода с помощью редактора кода.
+ ///
+ private void InitializeComponent()
+ {
+ this.comboBox = new System.Windows.Forms.ComboBox();
+ this.SuspendLayout();
+ //
+ // comboBox
+ //
+ this.comboBox.FormattingEnabled = true;
+ this.comboBox.Location = new System.Drawing.Point(3, 3);
+ this.comboBox.Name = "comboBox";
+ this.comboBox.Size = new System.Drawing.Size(220, 28);
+ this.comboBox.TabIndex = 0;
+ //
+ // ListElement
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.comboBox);
+ this.Name = "ListElement";
+ this.Size = new System.Drawing.Size(226, 201);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private ComboBox comboBox;
+ }
+}
diff --git a/KOP Ismailov R.I/KOP Ismailov R.I/ListElement.cs b/KOP Ismailov R.I/KOP Ismailov R.I/ListElement.cs
new file mode 100644
index 0000000..f7cff70
--- /dev/null
+++ b/KOP Ismailov R.I/KOP Ismailov R.I/ListElement.cs
@@ -0,0 +1,34 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using static System.Windows.Forms.VisualStyles.VisualStyleElement;
+
+namespace KOP_Ismailov_R.I_
+{
+ public partial class ListElement : UserControl
+ {
+ public ListElement()
+ {
+ InitializeComponent();
+ }
+
+ // Метод для заполнения выпадающего списка.
+ public void FillComboBox(List items)
+ {
+ comboBox.Items.Clear();
+ comboBox.Items.AddRange(items.ToArray());
+ }
+
+ // Свойство для доступа к выбранному элементу.
+ public string SelectedItem
+ {
+ get { return comboBox.SelectedItem?.ToString(); }
+ }
+ }
+}
diff --git a/KOP Ismailov R.I/KOP Ismailov R.I/ListElement.resx b/KOP Ismailov R.I/KOP Ismailov R.I/ListElement.resx
new file mode 100644
index 0000000..f298a7b
--- /dev/null
+++ b/KOP Ismailov R.I/KOP Ismailov R.I/ListElement.resx
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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/KOP Ismailov R.I/KOP Ismailov R.I/Program.cs b/KOP Ismailov R.I/KOP Ismailov R.I/Program.cs
new file mode 100644
index 0000000..0aeb3de
--- /dev/null
+++ b/KOP Ismailov R.I/KOP Ismailov R.I/Program.cs
@@ -0,0 +1,17 @@
+namespace KOP_Ismailov_R.I_
+{
+ 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 Form1());
+ }
+ }
+}
\ No newline at end of file
diff --git a/WinForms/WinForms.sln b/WinForms/WinForms.sln
new file mode 100644
index 0000000..f125431
--- /dev/null
+++ b/WinForms/WinForms.sln
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.3.32901.215
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WinForms", "WinForms\WinForms.csproj", "{E35CA264-4753-4082-8B76-2FEAB3B55B1A}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {E35CA264-4753-4082-8B76-2FEAB3B55B1A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E35CA264-4753-4082-8B76-2FEAB3B55B1A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E35CA264-4753-4082-8B76-2FEAB3B55B1A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E35CA264-4753-4082-8B76-2FEAB3B55B1A}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {F292528D-BC24-47E6-8D07-7232E1458930}
+ EndGlobalSection
+EndGlobal
diff --git a/WinForms/WinForms/Form1.Designer.cs b/WinForms/WinForms/Form1.Designer.cs
new file mode 100644
index 0000000..e15634b
--- /dev/null
+++ b/WinForms/WinForms/Form1.Designer.cs
@@ -0,0 +1,39 @@
+namespace WinForms
+{
+ partial class Form1
+ {
+ ///
+ /// 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
+ }
+}
\ No newline at end of file
diff --git a/WinForms/WinForms/Form1.cs b/WinForms/WinForms/Form1.cs
new file mode 100644
index 0000000..b34c462
--- /dev/null
+++ b/WinForms/WinForms/Form1.cs
@@ -0,0 +1,10 @@
+namespace WinForms
+{
+ public partial class Form1 : Form
+ {
+ public Form1()
+ {
+ InitializeComponent();
+ }
+ }
+}
\ No newline at end of file
diff --git a/WinForms/WinForms/Form1.resx b/WinForms/WinForms/Form1.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/WinForms/WinForms/Form1.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/WinForms/WinForms/Program.cs b/WinForms/WinForms/Program.cs
new file mode 100644
index 0000000..bf8b7fb
--- /dev/null
+++ b/WinForms/WinForms/Program.cs
@@ -0,0 +1,17 @@
+namespace WinForms
+{
+ 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 Form1());
+ }
+ }
+}
\ No newline at end of file
diff --git a/WinForms/WinForms/WinForms.csproj b/WinForms/WinForms/WinForms.csproj
new file mode 100644
index 0000000..b57c89e
--- /dev/null
+++ b/WinForms/WinForms/WinForms.csproj
@@ -0,0 +1,11 @@
+
+
+
+ WinExe
+ net6.0-windows
+ enable
+ true
+ enable
+
+
+
\ No newline at end of file