Browse Source

Выполнил Практическую работу №6

Vitaly Romanov 2 years ago
parent
commit
36ca9bec6e
40 changed files with 756 additions and 23 deletions
  1. BIN
      Praktika/.vs/2ISForms/v16/.suo
  2. 8 2
      Praktika/2ISForms.sln
  3. BIN
      Praktika/2ISForms/obj/Debug/DesignTimeResolveAssemblyReferences.cache
  4. BIN
      Praktika/PR4CyclicAlgorithms/obj/Debug/DesignTimeResolveAssemblyReferences.cache
  5. 2 2
      Praktika/PR5Strings/Strings.Designer.cs
  6. 24 17
      Praktika/PR5Strings/Strings.cs
  7. BIN
      Praktika/PR5Strings/bin/Debug/PR5Strings.exe
  8. 1 1
      Praktika/PR5Strings/bin/Debug/PR5Strings.exe.config
  9. BIN
      Praktika/PR5Strings/bin/Debug/PR5Strings.pdb
  10. 4 0
      Praktika/PR5Strings/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs
  11. BIN
      Praktika/PR5Strings/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  12. 1 1
      Praktika/PR5Strings/obj/Debug/PR5Strings.csproj.CoreCompileInputs.cache
  13. BIN
      Praktika/PR5Strings/obj/Debug/PR5Strings.csproj.GenerateResource.cache
  14. BIN
      Praktika/PR5Strings/obj/Debug/PR5Strings.exe
  15. BIN
      Praktika/PR5Strings/obj/Debug/PR5Strings.pdb
  16. BIN
      Praktika/PR5Strings/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll
  17. 6 0
      Praktika/PR6ArrayWF/App.config
  18. 133 0
      Praktika/PR6ArrayWF/Array.Designer.cs
  19. 72 0
      Praktika/PR6ArrayWF/Array.cs
  20. 120 0
      Praktika/PR6ArrayWF/Array.resx
  21. 83 0
      Praktika/PR6ArrayWF/PR6ArrayWF.csproj
  22. 22 0
      Praktika/PR6ArrayWF/Program.cs
  23. 36 0
      Praktika/PR6ArrayWF/Properties/AssemblyInfo.cs
  24. 70 0
      Praktika/PR6ArrayWF/Properties/Resources.Designer.cs
  25. 117 0
      Praktika/PR6ArrayWF/Properties/Resources.resx
  26. 29 0
      Praktika/PR6ArrayWF/Properties/Settings.Designer.cs
  27. 7 0
      Praktika/PR6ArrayWF/Properties/Settings.settings
  28. BIN
      Praktika/PR6ArrayWF/bin/Debug/PR6ArrayWF.exe
  29. 6 0
      Praktika/PR6ArrayWF/bin/Debug/PR6ArrayWF.exe.config
  30. BIN
      Praktika/PR6ArrayWF/bin/Debug/PR6ArrayWF.pdb
  31. 4 0
      Praktika/PR6ArrayWF/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs
  32. BIN
      Praktika/PR6ArrayWF/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  33. BIN
      Praktika/PR6ArrayWF/obj/Debug/PR6ArrayWF.Array.resources
  34. BIN
      Praktika/PR6ArrayWF/obj/Debug/PR6ArrayWF.Properties.Resources.resources
  35. BIN
      Praktika/PR6ArrayWF/obj/Debug/PR6ArrayWF.csproj.AssemblyReference.cache
  36. 1 0
      Praktika/PR6ArrayWF/obj/Debug/PR6ArrayWF.csproj.CoreCompileInputs.cache
  37. 10 0
      Praktika/PR6ArrayWF/obj/Debug/PR6ArrayWF.csproj.FileListAbsolute.txt
  38. BIN
      Praktika/PR6ArrayWF/obj/Debug/PR6ArrayWF.csproj.GenerateResource.cache
  39. BIN
      Praktika/PR6ArrayWF/obj/Debug/PR6ArrayWF.exe
  40. BIN
      Praktika/PR6ArrayWF/obj/Debug/PR6ArrayWF.pdb

BIN
Praktika/.vs/2ISForms/v16/.suo


+ 8 - 2
Praktika/2ISForms.sln

@@ -1,7 +1,7 @@
 
 Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Version 17
-VisualStudioVersion = 17.5.33424.131
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.32901.82
 MinimumVisualStudioVersion = 10.0.40219.1
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "2ISForms", "2ISForms\2ISForms.csproj", "{26D2BDF5-B0C5-48AD-BAB5-A5204247DD99}"
 EndProject
@@ -13,6 +13,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PR4CyclicAlgorithms", "PR4C
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PR5Strings", "PR5Strings\PR5Strings.csproj", "{551BA067-910C-4FB2-BA69-B0E0C847F327}"
 EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PR6ArrayWF", "PR6ArrayWF\PR6ArrayWF.csproj", "{561D00C1-A086-42CA-9D1C-4CDA1B4CF7AD}"
+EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 		Debug|Any CPU = Debug|Any CPU
@@ -39,6 +41,10 @@ Global
 		{551BA067-910C-4FB2-BA69-B0E0C847F327}.Debug|Any CPU.Build.0 = Debug|Any CPU
 		{551BA067-910C-4FB2-BA69-B0E0C847F327}.Release|Any CPU.ActiveCfg = Release|Any CPU
 		{551BA067-910C-4FB2-BA69-B0E0C847F327}.Release|Any CPU.Build.0 = Release|Any CPU
+		{561D00C1-A086-42CA-9D1C-4CDA1B4CF7AD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{561D00C1-A086-42CA-9D1C-4CDA1B4CF7AD}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{561D00C1-A086-42CA-9D1C-4CDA1B4CF7AD}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{561D00C1-A086-42CA-9D1C-4CDA1B4CF7AD}.Release|Any CPU.Build.0 = Release|Any CPU
 	EndGlobalSection
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE

BIN
Praktika/2ISForms/obj/Debug/DesignTimeResolveAssemblyReferences.cache


BIN
Praktika/PR4CyclicAlgorithms/obj/Debug/DesignTimeResolveAssemblyReferences.cache


+ 2 - 2
Praktika/PR5Strings/Strings.Designer.cs

@@ -40,8 +40,8 @@
             this.lbInput.Items.AddRange(new object[] {
             "It is pointless to comprehend the meaning with unthought thoughts",
             "A lilac unpromising with a re-subverted",
-            "Beavers wander into the cheeses of the forests. Beavers are brave, but kind to be" +
-                "avers",
+            "Beavers wander into the cheeses of the forests Beavers are brave but kind to beav" +
+                "ers",
             "The interviewer interviewed the interviewer"});
             this.lbInput.Location = new System.Drawing.Point(12, 12);
             this.lbInput.Name = "lbInput";

+ 24 - 17
Praktika/PR5Strings/Strings.cs

@@ -14,45 +14,52 @@ namespace PR5Strings
     public partial class fStrings : Form
     {
         /// <summary>
-        /// Метод CyclicAlgorithms
-        /// Инициализирует компоненты
-        /// </summary>
-        public fStrings()
-        {
-            InitializeComponent();
-        }
-        /// <summary>
-        /// Метод btnStart_Click
-        /// Выбирает выбранную строку, разбивает её по словам
+        /// Метод Сonclusion
+        /// выбирает выбранную строку, разбивает её по словам
         /// и выводит изменённые слова
         /// </summary>
-        /// <param name="sender">Объект, вызвавший событие</param>
-        /// <param name="e">Передает объект, относящийся к обрабатываемому событию</param>
-        private void btnStart_Click(object sender, EventArgs e)
+        public void Сonclusion()
         {
             lConclusion.Text = "";
             int index = lbInput.SelectedIndex;
             string str = (string)lbInput.Items[index];
             var words = str.Split(' ');
-            foreach ( var word in words )
+            foreach (var word in words)
             {
                 if (word.Length > 1)
                 {
                     string mixed_word = "";
                     mixed_word += word[word.Length - 1];
-
                     for (int i = 1; i < word.Length - 1; i++)
                     {
                         mixed_word += word[i];
                     }
                     mixed_word += word[0];
-
                     lConclusion.Text += $"{mixed_word} ";
-                } else
+                }
+                else
                 {
                     lConclusion.Text += $"{word} ";
                 }
             }
         }
+        /// <summary>
+        /// Метод CyclicAlgorithms
+        /// Инициализирует компоненты
+        /// </summary>
+        public fStrings()
+        {
+            InitializeComponent();
+        }
+        /// <summary>
+        /// Метод btnStart_Click
+        /// обращается к методу Сonclusion
+        /// </summary>
+        /// <param name="sender">Объект, вызвавший событие</param>
+        /// <param name="e">Передает объект, относящийся к обрабатываемому событию</param>
+        private void btnStart_Click(object sender, EventArgs e)
+        {
+            Сonclusion();
+        }
     }
 }

BIN
Praktika/PR5Strings/bin/Debug/PR5Strings.exe


+ 1 - 1
Praktika/PR5Strings/bin/Debug/PR5Strings.exe.config

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <configuration>
     <startup> 
-        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
+        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
     </startup>
 </configuration>

BIN
Praktika/PR5Strings/bin/Debug/PR5Strings.pdb


+ 4 - 0
Praktika/PR5Strings/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs

@@ -0,0 +1,4 @@
+// <autogenerated />
+using System;
+using System.Reflection;
+[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]

BIN
Praktika/PR5Strings/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache


+ 1 - 1
Praktika/PR5Strings/obj/Debug/PR5Strings.csproj.CoreCompileInputs.cache

@@ -1 +1 @@
-51b9b5974bc3b1910c30f8b272d839652e096d00
+afef896be1219c78a7343a48c30f2ac2898ef504

BIN
Praktika/PR5Strings/obj/Debug/PR5Strings.csproj.GenerateResource.cache


BIN
Praktika/PR5Strings/obj/Debug/PR5Strings.exe


BIN
Praktika/PR5Strings/obj/Debug/PR5Strings.pdb


BIN
Praktika/PR5Strings/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll


+ 6 - 0
Praktika/PR6ArrayWF/App.config

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+    <startup> 
+        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
+    </startup>
+</configuration>

+ 133 - 0
Praktika/PR6ArrayWF/Array.Designer.cs

@@ -0,0 +1,133 @@
+
+namespace PR6ArrayWF
+{
+    partial class Array
+    {
+        /// <summary>
+        /// Обязательная переменная конструктора.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// Освободить все используемые ресурсы.
+        /// </summary>
+        /// <param name="disposing">истинно, если управляемый ресурс должен быть удален; иначе ложно.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Код, автоматически созданный конструктором форм Windows
+
+        /// <summary>
+        /// Требуемый метод для поддержки конструктора — не изменяйте 
+        /// содержимое этого метода с помощью редактора кода.
+        /// </summary>
+        private void InitializeComponent()
+        {
+            this.tbOriginal = new System.Windows.Forms.TextBox();
+            this.tbReceived = new System.Windows.Forms.TextBox();
+            this.lblOriginal = new System.Windows.Forms.Label();
+            this.lblReceived = new System.Windows.Forms.Label();
+            this.btnFill = new System.Windows.Forms.Button();
+            this.btnReplacement = new System.Windows.Forms.Button();
+            this.SuspendLayout();
+            // 
+            // tbOriginal
+            // 
+            this.tbOriginal.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.tbOriginal.Location = new System.Drawing.Point(12, 32);
+            this.tbOriginal.Multiline = true;
+            this.tbOriginal.Name = "tbOriginal";
+            this.tbOriginal.ReadOnly = true;
+            this.tbOriginal.Size = new System.Drawing.Size(230, 362);
+            this.tbOriginal.TabIndex = 0;
+            this.tbOriginal.Text = "Нажмите Заполнить";
+            // 
+            // tbReceived
+            // 
+            this.tbReceived.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.tbReceived.Location = new System.Drawing.Point(248, 32);
+            this.tbReceived.Multiline = true;
+            this.tbReceived.Name = "tbReceived";
+            this.tbReceived.ReadOnly = true;
+            this.tbReceived.Size = new System.Drawing.Size(230, 362);
+            this.tbReceived.TabIndex = 1;
+            this.tbReceived.Text = "Нажмите Заменить";
+            // 
+            // lblOriginal
+            // 
+            this.lblOriginal.AutoSize = true;
+            this.lblOriginal.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.lblOriginal.Location = new System.Drawing.Point(8, 9);
+            this.lblOriginal.Name = "lblOriginal";
+            this.lblOriginal.Size = new System.Drawing.Size(146, 20);
+            this.lblOriginal.TabIndex = 2;
+            this.lblOriginal.Text = "Исходный массив:";
+            // 
+            // lblReceived
+            // 
+            this.lblReceived.AutoSize = true;
+            this.lblReceived.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.lblReceived.Location = new System.Drawing.Point(244, 9);
+            this.lblReceived.Name = "lblReceived";
+            this.lblReceived.Size = new System.Drawing.Size(165, 20);
+            this.lblReceived.TabIndex = 3;
+            this.lblReceived.Text = "Полученный массив:";
+            // 
+            // btnFill
+            // 
+            this.btnFill.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.btnFill.Location = new System.Drawing.Point(12, 400);
+            this.btnFill.Name = "btnFill";
+            this.btnFill.Size = new System.Drawing.Size(200, 50);
+            this.btnFill.TabIndex = 4;
+            this.btnFill.Text = "Заполнить";
+            this.btnFill.UseVisualStyleBackColor = true;
+            this.btnFill.Click += new System.EventHandler(this.btnFill_Click);
+            // 
+            // btnReplacement
+            // 
+            this.btnReplacement.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.btnReplacement.Location = new System.Drawing.Point(278, 400);
+            this.btnReplacement.Name = "btnReplacement";
+            this.btnReplacement.Size = new System.Drawing.Size(200, 50);
+            this.btnReplacement.TabIndex = 5;
+            this.btnReplacement.Text = "Заменить";
+            this.btnReplacement.UseVisualStyleBackColor = true;
+            this.btnReplacement.Click += new System.EventHandler(this.btnReplacement_Click);
+            // 
+            // Array
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(484, 462);
+            this.Controls.Add(this.btnReplacement);
+            this.Controls.Add(this.btnFill);
+            this.Controls.Add(this.lblReceived);
+            this.Controls.Add(this.lblOriginal);
+            this.Controls.Add(this.tbReceived);
+            this.Controls.Add(this.tbOriginal);
+            this.Name = "Array";
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
+            this.Text = "Практическая работа №6";
+            this.ResumeLayout(false);
+            this.PerformLayout();
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.TextBox tbOriginal;
+        private System.Windows.Forms.TextBox tbReceived;
+        private System.Windows.Forms.Label lblOriginal;
+        private System.Windows.Forms.Label lblReceived;
+        private System.Windows.Forms.Button btnFill;
+        private System.Windows.Forms.Button btnReplacement;
+    }
+}
+

+ 72 - 0
Praktika/PR6ArrayWF/Array.cs

@@ -0,0 +1,72 @@
+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;
+
+namespace PR6ArrayWF
+{
+    public partial class Array : Form
+    {
+        int[] array_a = new int[15];
+        /// <summary>
+        /// Метод NewMassive
+        /// Создаёт массив и выводит его в поле tbOriginal
+        /// </summary>
+        public void NewMassive()
+        {
+            tbOriginal.Text = "";
+            Random M = new Random();
+            for (int i = 0; i < 15; ++i)
+            {
+                array_a[i] = M.Next(-5, 6);
+                tbOriginal.Text += $"Mas[{i}] = {array_a[i]}" + Environment.NewLine;
+            }
+        }
+        /// <summary>
+        /// Метод ReceivedMassive
+        /// Преобразует массив и выводит его в поле tbReceived
+        /// </summary>
+        public void ReceivedMassive()
+        {
+            tbReceived.Text = "";
+            array_a = array_a.ToList().Distinct().ToArray();
+            for (int i = 0; i < array_a.Length; ++i)
+            {
+                tbReceived.Text += $"Mas[{i}] = {array_a[i]}" + Environment.NewLine;
+            }
+        }
+        /// <summary>
+        /// Метод Array
+        /// Инициализирует компоненты
+        /// </summary>
+        public Array()
+        {
+            InitializeComponent();
+        }
+        /// <summary>
+        /// Метод btnFill_Click
+        /// обращается к методу NewMassive
+        /// </summary>
+        /// <param name="sender">Объект, вызвавший событие</param>
+        /// <param name="e">Передает объект, относящийся к обрабатываемому событию</param>
+        private void btnFill_Click(object sender, EventArgs e)
+        {
+            NewMassive();
+        }
+        /// <summary>
+        /// Метод btnReplacement_Click
+        /// обращается к методу ReceivedMassive
+        /// </summary>
+        /// <param name="sender">Объект, вызвавший событие</param>
+        /// <param name="e">Передает объект, относящийся к обрабатываемому событию</param>
+        private void btnReplacement_Click(object sender, EventArgs e)
+        {
+            ReceivedMassive();
+        }
+    }
+}

+ 120 - 0
Praktika/PR6ArrayWF/Array.resx

@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+</root>

+ 83 - 0
Praktika/PR6ArrayWF/PR6ArrayWF.csproj

@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProjectGuid>{561D00C1-A086-42CA-9D1C-4CDA1B4CF7AD}</ProjectGuid>
+    <OutputType>WinExe</OutputType>
+    <RootNamespace>PR6ArrayWF</RootNamespace>
+    <AssemblyName>PR6ArrayWF</AssemblyName>
+    <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
+    <FileAlignment>512</FileAlignment>
+    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
+    <Deterministic>true</Deterministic>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <PlatformTarget>AnyCPU</PlatformTarget>
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <PlatformTarget>AnyCPU</PlatformTarget>
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+    <Reference Include="System.Core" />
+    <Reference Include="System.Xml.Linq" />
+    <Reference Include="System.Data.DataSetExtensions" />
+    <Reference Include="Microsoft.CSharp" />
+    <Reference Include="System.Data" />
+    <Reference Include="System.Deployment" />
+    <Reference Include="System.Drawing" />
+    <Reference Include="System.Net.Http" />
+    <Reference Include="System.Windows.Forms" />
+    <Reference Include="System.Xml" />
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Array.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="Array.Designer.cs">
+      <DependentUpon>Array.cs</DependentUpon>
+    </Compile>
+    <Compile Include="Program.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+    <EmbeddedResource Include="Array.resx">
+      <DependentUpon>Array.cs</DependentUpon>
+    </EmbeddedResource>
+    <EmbeddedResource Include="Properties\Resources.resx">
+      <Generator>ResXFileCodeGenerator</Generator>
+      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+      <SubType>Designer</SubType>
+    </EmbeddedResource>
+    <Compile Include="Properties\Resources.Designer.cs">
+      <AutoGen>True</AutoGen>
+      <DependentUpon>Resources.resx</DependentUpon>
+    </Compile>
+    <None Include="Properties\Settings.settings">
+      <Generator>SettingsSingleFileGenerator</Generator>
+      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
+    </None>
+    <Compile Include="Properties\Settings.Designer.cs">
+      <AutoGen>True</AutoGen>
+      <DependentUpon>Settings.settings</DependentUpon>
+      <DesignTimeSharedInput>True</DesignTimeSharedInput>
+    </Compile>
+  </ItemGroup>
+  <ItemGroup>
+    <None Include="App.config" />
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+</Project>

+ 22 - 0
Praktika/PR6ArrayWF/Program.cs

@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace PR6ArrayWF
+{
+    static class Program
+    {
+        /// <summary>
+        /// Главная точка входа для приложения.
+        /// </summary>
+        [STAThread]
+        static void Main()
+        {
+            Application.EnableVisualStyles();
+            Application.SetCompatibleTextRenderingDefault(false);
+            Application.Run(new Array());
+        }
+    }
+}

+ 36 - 0
Praktika/PR6ArrayWF/Properties/AssemblyInfo.cs

@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// Общие сведения об этой сборке предоставляются следующим набором
+// набора атрибутов. Измените значения этих атрибутов для изменения сведений,
+// связанных со сборкой.
+[assembly: AssemblyTitle("PR6ArrayWF")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("PR6ArrayWF")]
+[assembly: AssemblyCopyright("Copyright © Microsoft 2023")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми
+// для компонентов COM. Если необходимо обратиться к типу в этой сборке через
+// COM, следует установить атрибут ComVisible в TRUE для этого типа.
+[assembly: ComVisible(false)]
+
+// Следующий GUID служит для идентификации библиотеки типов, если этот проект будет видимым для COM
+[assembly: Guid("561d00c1-a086-42ca-9d1c-4cda1b4cf7ad")]
+
+// Сведения о версии сборки состоят из указанных ниже четырех значений:
+//
+//      Основной номер версии
+//      Дополнительный номер версии
+//      Номер сборки
+//      Редакция
+//
+// Можно задать все значения или принять номера сборки и редакции по умолчанию 
+// используя "*", как показано ниже:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]

+ 70 - 0
Praktika/PR6ArrayWF/Properties/Resources.Designer.cs

@@ -0,0 +1,70 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программным средством.
+//     Версия среды выполнения: 4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильному поведению и будут утрачены, если
+//     код создан повторно.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+
+namespace PR6ArrayWF.Properties
+{
+    /// <summary>
+    ///   Класс ресурсов со строгим типом для поиска локализованных строк и пр.
+    /// </summary>
+    // Этот класс был автоматически создан при помощи StronglyTypedResourceBuilder
+    // класс с помощью таких средств, как ResGen или Visual Studio.
+    // Для добавления или удаления члена измените файл .ResX, а затем перезапустите ResGen
+    // с параметром /str или заново постройте свой VS-проект.
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+    internal class Resources
+    {
+
+        private static global::System.Resources.ResourceManager resourceMan;
+
+        private static global::System.Globalization.CultureInfo resourceCulture;
+
+        [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+        internal Resources()
+        {
+        }
+
+        /// <summary>
+        ///   Возврат кэшированного экземпляра ResourceManager, используемого этим классом.
+        /// </summary>
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+        internal static global::System.Resources.ResourceManager ResourceManager
+        {
+            get
+            {
+                if ((resourceMan == null))
+                {
+                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PR6ArrayWF.Properties.Resources", typeof(Resources).Assembly);
+                    resourceMan = temp;
+                }
+                return resourceMan;
+            }
+        }
+
+        /// <summary>
+        ///   Переопределяет свойство CurrentUICulture текущего потока для всех
+        ///   подстановки ресурсов с помощью этого класса ресурсов со строгим типом.
+        /// </summary>
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+        internal static global::System.Globalization.CultureInfo Culture
+        {
+            get
+            {
+                return resourceCulture;
+            }
+            set
+            {
+                resourceCulture = value;
+            }
+        }
+    }
+}

+ 117 - 0
Praktika/PR6ArrayWF/Properties/Resources.resx

@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+</root>

+ 29 - 0
Praktika/PR6ArrayWF/Properties/Settings.Designer.cs

@@ -0,0 +1,29 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     This code was generated by a tool.
+//     Runtime Version:4.0.30319.42000
+//
+//     Changes to this file may cause incorrect behavior and will be lost if
+//     the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+
+namespace PR6ArrayWF.Properties
+{
+    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
+    internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
+    {
+
+        private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+        public static Settings Default
+        {
+            get
+            {
+                return defaultInstance;
+            }
+        }
+    }
+}

+ 7 - 0
Praktika/PR6ArrayWF/Properties/Settings.settings

@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='utf-8'?>
+<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
+  <Profiles>
+    <Profile Name="(Default)" />
+  </Profiles>
+  <Settings />
+</SettingsFile>

BIN
Praktika/PR6ArrayWF/bin/Debug/PR6ArrayWF.exe


+ 6 - 0
Praktika/PR6ArrayWF/bin/Debug/PR6ArrayWF.exe.config

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+    <startup> 
+        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
+    </startup>
+</configuration>

BIN
Praktika/PR6ArrayWF/bin/Debug/PR6ArrayWF.pdb


+ 4 - 0
Praktika/PR6ArrayWF/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs

@@ -0,0 +1,4 @@
+// <autogenerated />
+using System;
+using System.Reflection;
+[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]

BIN
Praktika/PR6ArrayWF/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache


BIN
Praktika/PR6ArrayWF/obj/Debug/PR6ArrayWF.Array.resources


BIN
Praktika/PR6ArrayWF/obj/Debug/PR6ArrayWF.Properties.Resources.resources


BIN
Praktika/PR6ArrayWF/obj/Debug/PR6ArrayWF.csproj.AssemblyReference.cache


+ 1 - 0
Praktika/PR6ArrayWF/obj/Debug/PR6ArrayWF.csproj.CoreCompileInputs.cache

@@ -0,0 +1 @@
+6c2a4ad6f2bd93d547f9b8dd4518f839454859d6

+ 10 - 0
Praktika/PR6ArrayWF/obj/Debug/PR6ArrayWF.csproj.FileListAbsolute.txt

@@ -0,0 +1,10 @@
+C:\Users\Dom\Desktop\Практика C#\Praktika\PR6ArrayWF\bin\Debug\PR6ArrayWF.exe.config
+C:\Users\Dom\Desktop\Практика C#\Praktika\PR6ArrayWF\bin\Debug\PR6ArrayWF.exe
+C:\Users\Dom\Desktop\Практика C#\Praktika\PR6ArrayWF\bin\Debug\PR6ArrayWF.pdb
+C:\Users\Dom\Desktop\Практика C#\Praktika\PR6ArrayWF\obj\Debug\PR6ArrayWF.csproj.AssemblyReference.cache
+C:\Users\Dom\Desktop\Практика C#\Praktika\PR6ArrayWF\obj\Debug\PR6ArrayWF.Array.resources
+C:\Users\Dom\Desktop\Практика C#\Praktika\PR6ArrayWF\obj\Debug\PR6ArrayWF.Properties.Resources.resources
+C:\Users\Dom\Desktop\Практика C#\Praktika\PR6ArrayWF\obj\Debug\PR6ArrayWF.csproj.GenerateResource.cache
+C:\Users\Dom\Desktop\Практика C#\Praktika\PR6ArrayWF\obj\Debug\PR6ArrayWF.csproj.CoreCompileInputs.cache
+C:\Users\Dom\Desktop\Практика C#\Praktika\PR6ArrayWF\obj\Debug\PR6ArrayWF.exe
+C:\Users\Dom\Desktop\Практика C#\Praktika\PR6ArrayWF\obj\Debug\PR6ArrayWF.pdb

BIN
Praktika/PR6ArrayWF/obj/Debug/PR6ArrayWF.csproj.GenerateResource.cache


BIN
Praktika/PR6ArrayWF/obj/Debug/PR6ArrayWF.exe


BIN
Praktika/PR6ArrayWF/obj/Debug/PR6ArrayWF.pdb