Browse Source

Добавлена практическая с практикой

Вадим Королёв 1 year ago
parent
commit
a4fd57ec98

+ 86 - 0
7.1 График/4-8 05.02.docx

@@ -0,0 +1,86 @@
+ПРАКТИЧЕСКАЯ РАБОТА №8
+Графики и функции
+
+Цель
+- изучить возможности построения графиков с помощью элемента управления Chart
+- написать и отладить программу построения графика заданной функции
+
+Условие задания
+Постройте график функции для своего варианта из практической работы №4.
+
+Листинг 1  -  Код бэкэнда главной формы
+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 WinGraphsNet
+{
+    public partial class MainForm : Form
+    {
+        public MainForm()
+        {
+            InitializeComponent();
+        }
+
+        private void btnCalculate_Click(object sender, EventArgs e)
+        {
+            // Считываем введённые значения
+            float MinX, MaxX, Step, A;
+            try
+            {
+                MinX = float.Parse(tbMinX.Text);
+                MaxX = float.Parse(tbMaxX.Text);
+                Step = float.Parse(tbStep.Text);
+                A = float.Parse(tbA.Text);
+            } catch (FormatException)
+            {
+                MessageBox.Show("Формат введённых чисел неверный");
+                return;
+            }
+
+            if (MaxX < MinX || MaxX == MinX)
+            {
+                MessageBox.Show("MaxX не может быть меньше или равен MinX");
+                return;
+            }
+
+            if (Step == 0)
+            {
+                MessageBox.Show("Шаг не может быть равен нулю!");
+                return;
+            }
+
+            // Подготовка к обновлению графика
+            int PointCount = (int)Math.Ceiling((MaxX - MinX) / Step); // Количество точек
+            var PointsX = new float[PointCount]; // Координата X
+            var PointsY = new float[PointCount]; // Координата Y
+
+            // Вычисление значений графика
+            for (int i = 0; i < PointCount; i++)
+            {
+                PointsX[i] = MinX + Step * i; // Вычисление X
+                PointsY[i] = (float)(9 * (Math.Pow(PointsX[i], 3) + Math.Pow(A, 3) * Math.Tan(PointsX[i])));
+            }
+
+            // Настройка графика
+            chrtMain.ChartAreas[0].AxisX.Minimum = MinX;
+            chrtMain.ChartAreas[0].AxisX.Maximum = MaxX;
+            chrtMain.ChartAreas[0].AxisX.MajorGrid.Interval = Step;
+            chrtMain.Series[0].Points.DataBindXY(PointsX, PointsY);
+        }
+    }
+}
+Рисунок 1  -  Пример работы программы
+
+Ответы на контрольные вопросы
+1 <<Как реализуется двумерная графика в С#?>>
+С помощью элемента управления chart.
+
+2 <<Как строится график с помощью элемента управления chart>>
+Каждой точке графика присваивается значение функции, затем система автоматически строит график по точкам.

+ 128 - 0
7.1 График/4-8 05.02.pdf

@@ -0,0 +1,128 @@
+                     ПРАКТИЧЕСКАЯ РАБОТА №8
+                          Графики и функции
+
+                                                             Цель
+           - изучить возможности построения графиков с помощью элемента управления Chart
+           - написать и отладить программу построения графика заданной функции
+
+                                                     Условие задания
+           Постройте график функции для своего варианта из практической работы №4.
+
+Листинг 1 – Код бэкэнда главной формы
+        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 WinGraphsNet
+           {
+
+               public partial class MainForm : Form
+               {
+
+                    public MainForm()
+                    {
+
+                         InitializeComponent();
+                    }
+
+           private void btnCalculate_Click(object sender, EventArgs e)
+           {
+
+               // Считываем введённые значения
+               float MinX, MaxX, Step, A;
+
+                                                     МДК.05.02.012.09.02.06.000.ОТ
+
+Изм. Лист  № докум.  Подпись Дата
+
+Разраб.    Королёв                                   РАБОТА №8  Лит.    Лист        Листов
+                                                                                       4
+Провер.    Галимова                                                     1
+
+Н. Контр.                                                               ВПМТ 2ИС
+Утверд.
+точек      try
+           {
+
+               MinX = float.Parse(tbMinX.Text);
+               MaxX = float.Parse(tbMaxX.Text);
+               Step = float.Parse(tbStep.Text);
+               A = float.Parse(tbA.Text);
+           } catch (FormatException)
+           {
+               MessageBox.Show("Формат введённых чисел неверный");
+               return;
+           }
+
+           if (MaxX < MinX || MaxX == MinX)
+           {
+
+               MessageBox.Show("MaxX не может быть меньше или равен MinX");
+               return;
+           }
+
+           if (Step == 0)
+           {
+
+               MessageBox.Show("Шаг не может быть равен нулю!");
+               return;
+           }
+
+           // Подготовка к обновлению графика
+           int PointCount = (int)Math.Ceiling((MaxX - MinX) / Step); // Количество
+
+           var PointsX = new float[PointCount]; // Координата X
+           var PointsY = new float[PointCount]; // Координата Y
+
+           // Вычисление значений графика
+           for (int i = 0; i < PointCount; i++)
+           {
+
+               PointsX[i] = MinX + Step * i; // Вычисление X
+
+                                                                  Лист
+
+                                   МДК.05.02.012.09.02.06.000.ОТ  2
+
+Изм. Лист  № докум.  Подпись Дата
+                            PointsY[i] = (float)(9 * (Math.Pow(PointsX[i], 3) + Math.Pow(A, 3) *
+Math.Tan(PointsX[i])));
+
+                       }
+
+                       // Настройка графика
+                       chrtMain.ChartAreas[0].AxisX.Minimum = MinX;
+                       chrtMain.ChartAreas[0].AxisX.Maximum = MaxX;
+                       chrtMain.ChartAreas[0].AxisX.MajorGrid.Interval = Step;
+                       chrtMain.Series[0].Points.DataBindXY(PointsX, PointsY);
+                  }
+             }
+        }
+
+                            Рисунок 1 – Пример работы программы
+
+                               Ответы на контрольные вопросы
+1 «Как реализуется двумерная графика в С#?»
+С помощью элемента управления chart.
+
+                                                                  Лист
+
+                                   МДК.05.02.012.09.02.06.000.ОТ  3
+
+Изм. Лист  № докум.  Подпись Дата
+        2 «Как строится график с помощью элемента управления chart»  затем  система
+        Каждой точке графика присваивается значение функции,
+автоматически строит график по точкам.
+
+                                                                            Лист
+
+                                   МДК.05.02.012.09.02.06.000.ОТ            4
+
+Изм. Лист  № докум.  Подпись Дата
+

+ 25 - 0
7.1 График/WinGraphsNet/WinGraphsNet.sln

@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.32802.440
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WinGraphsNet", "WinGraphsNet\WinGraphsNet.csproj", "{3050572D-7D99-4197-8D19-62E0B210003B}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{3050572D-7D99-4197-8D19-62E0B210003B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{3050572D-7D99-4197-8D19-62E0B210003B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{3050572D-7D99-4197-8D19-62E0B210003B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{3050572D-7D99-4197-8D19-62E0B210003B}.Release|Any CPU.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+	GlobalSection(ExtensibilityGlobals) = postSolution
+		SolutionGuid = {657FA903-D1E7-4E24-8656-FCF80225C0DC}
+	EndGlobalSection
+EndGlobal

+ 6 - 0
7.1 График/WinGraphsNet/WinGraphsNet/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>

+ 184 - 0
7.1 График/WinGraphsNet/WinGraphsNet/MainForm.Designer.cs

@@ -0,0 +1,184 @@
+
+namespace WinGraphsNet
+{
+    partial class MainForm
+    {
+        /// <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()
+        {
+            System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
+            System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend();
+            System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series();
+            this.chrtMain = new System.Windows.Forms.DataVisualization.Charting.Chart();
+            this.lblXMin = new System.Windows.Forms.Label();
+            this.tbMinX = new System.Windows.Forms.TextBox();
+            this.tbMaxX = new System.Windows.Forms.TextBox();
+            this.lblMaxX = new System.Windows.Forms.Label();
+            this.tbStep = new System.Windows.Forms.TextBox();
+            this.lblStep = new System.Windows.Forms.Label();
+            this.btnCalculate = new System.Windows.Forms.Button();
+            this.tbA = new System.Windows.Forms.TextBox();
+            this.lblA = new System.Windows.Forms.Label();
+            ((System.ComponentModel.ISupportInitialize)(this.chrtMain)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // chrtMain
+            // 
+            chartArea1.Name = "ChartArea1";
+            this.chrtMain.ChartAreas.Add(chartArea1);
+            legend1.Name = "Legend1";
+            this.chrtMain.Legends.Add(legend1);
+            this.chrtMain.Location = new System.Drawing.Point(13, 13);
+            this.chrtMain.Name = "chrtMain";
+            series1.ChartArea = "ChartArea1";
+            series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Spline;
+            series1.Legend = "Legend1";
+            series1.Name = "y=9*x^3+A^3+tan(x)";
+            this.chrtMain.Series.Add(series1);
+            this.chrtMain.Size = new System.Drawing.Size(775, 359);
+            this.chrtMain.TabIndex = 0;
+            this.chrtMain.Text = "chart1";
+            // 
+            // lblXMin
+            // 
+            this.lblXMin.AutoSize = true;
+            this.lblXMin.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.lblXMin.Location = new System.Drawing.Point(13, 381);
+            this.lblXMin.Name = "lblXMin";
+            this.lblXMin.RightToLeft = System.Windows.Forms.RightToLeft.No;
+            this.lblXMin.Size = new System.Drawing.Size(37, 16);
+            this.lblXMin.TabIndex = 1;
+            this.lblXMin.Text = "MinX";
+            // 
+            // tbMinX
+            // 
+            this.tbMinX.Location = new System.Drawing.Point(16, 400);
+            this.tbMinX.Name = "tbMinX";
+            this.tbMinX.Size = new System.Drawing.Size(113, 20);
+            this.tbMinX.TabIndex = 2;
+            // 
+            // tbMaxX
+            // 
+            this.tbMaxX.Location = new System.Drawing.Point(135, 400);
+            this.tbMaxX.Name = "tbMaxX";
+            this.tbMaxX.Size = new System.Drawing.Size(113, 20);
+            this.tbMaxX.TabIndex = 4;
+            // 
+            // lblMaxX
+            // 
+            this.lblMaxX.AutoSize = true;
+            this.lblMaxX.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.lblMaxX.Location = new System.Drawing.Point(132, 381);
+            this.lblMaxX.Name = "lblMaxX";
+            this.lblMaxX.RightToLeft = System.Windows.Forms.RightToLeft.No;
+            this.lblMaxX.Size = new System.Drawing.Size(41, 16);
+            this.lblMaxX.TabIndex = 3;
+            this.lblMaxX.Text = "MaxX";
+            // 
+            // tbStep
+            // 
+            this.tbStep.Location = new System.Drawing.Point(254, 400);
+            this.tbStep.Name = "tbStep";
+            this.tbStep.Size = new System.Drawing.Size(113, 20);
+            this.tbStep.TabIndex = 6;
+            // 
+            // lblStep
+            // 
+            this.lblStep.AutoSize = true;
+            this.lblStep.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.lblStep.Location = new System.Drawing.Point(251, 379);
+            this.lblStep.Name = "lblStep";
+            this.lblStep.RightToLeft = System.Windows.Forms.RightToLeft.No;
+            this.lblStep.Size = new System.Drawing.Size(33, 16);
+            this.lblStep.TabIndex = 5;
+            this.lblStep.Text = "Шаг";
+            // 
+            // btnCalculate
+            // 
+            this.btnCalculate.Location = new System.Drawing.Point(492, 400);
+            this.btnCalculate.Name = "btnCalculate";
+            this.btnCalculate.Size = new System.Drawing.Size(113, 20);
+            this.btnCalculate.TabIndex = 7;
+            this.btnCalculate.Text = "Расчёт!";
+            this.btnCalculate.UseVisualStyleBackColor = true;
+            this.btnCalculate.Click += new System.EventHandler(this.btnCalculate_Click);
+            // 
+            // tbA
+            // 
+            this.tbA.Location = new System.Drawing.Point(373, 399);
+            this.tbA.Name = "tbA";
+            this.tbA.Size = new System.Drawing.Size(113, 20);
+            this.tbA.TabIndex = 9;
+            // 
+            // lblA
+            // 
+            this.lblA.AutoSize = true;
+            this.lblA.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.lblA.Location = new System.Drawing.Point(370, 378);
+            this.lblA.Name = "lblA";
+            this.lblA.RightToLeft = System.Windows.Forms.RightToLeft.No;
+            this.lblA.Size = new System.Drawing.Size(89, 16);
+            this.lblA.TabIndex = 8;
+            this.lblA.Text = "Константа A";
+            // 
+            // MainForm
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(800, 432);
+            this.Controls.Add(this.tbA);
+            this.Controls.Add(this.lblA);
+            this.Controls.Add(this.btnCalculate);
+            this.Controls.Add(this.tbStep);
+            this.Controls.Add(this.lblStep);
+            this.Controls.Add(this.tbMaxX);
+            this.Controls.Add(this.lblMaxX);
+            this.Controls.Add(this.tbMinX);
+            this.Controls.Add(this.lblXMin);
+            this.Controls.Add(this.chrtMain);
+            this.Name = "MainForm";
+            this.Text = "Построение графика функций";
+            ((System.ComponentModel.ISupportInitialize)(this.chrtMain)).EndInit();
+            this.ResumeLayout(false);
+            this.PerformLayout();
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.DataVisualization.Charting.Chart chrtMain;
+        private System.Windows.Forms.Label lblXMin;
+        private System.Windows.Forms.TextBox tbMinX;
+        private System.Windows.Forms.TextBox tbMaxX;
+        private System.Windows.Forms.Label lblMaxX;
+        private System.Windows.Forms.TextBox tbStep;
+        private System.Windows.Forms.Label lblStep;
+        private System.Windows.Forms.Button btnCalculate;
+        private System.Windows.Forms.TextBox tbA;
+        private System.Windows.Forms.Label lblA;
+    }
+}
+

+ 67 - 0
7.1 График/WinGraphsNet/WinGraphsNet/MainForm.cs

@@ -0,0 +1,67 @@
+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 WinGraphsNet
+{
+    public partial class MainForm : Form
+    {
+        public MainForm()
+        {
+            InitializeComponent();
+        }
+
+        private void btnCalculate_Click(object sender, EventArgs e)
+        {
+            // Считываем введённые значения
+            float MinX, MaxX, Step, A;
+            try
+            {
+                MinX = float.Parse(tbMinX.Text);
+                MaxX = float.Parse(tbMaxX.Text);
+                Step = float.Parse(tbStep.Text);
+                A = float.Parse(tbA.Text);
+            } catch (FormatException)
+            {
+                MessageBox.Show("Формат введённых чисел неверный");
+                return;
+            }
+
+            if (MaxX < MinX || MaxX == MinX)
+            {
+                MessageBox.Show("MaxX не может быть меньше или равен MinX");
+                return;
+            }
+
+            if (Step == 0)
+            {
+                MessageBox.Show("Шаг не может быть равен нулю!");
+                return;
+            }
+
+            // Подготовка к обновлению графика
+            int PointCount = (int)Math.Ceiling((MaxX - MinX) / Step) + 1; // Количество точек
+            var PointsX = new float[PointCount]; // Координата X
+            var PointsY = new float[PointCount]; // Координата Y
+
+            // Вычисление значений графика
+            for (int i = 0; i < PointCount; i++)
+            {
+                PointsX[i] = MinX + Step * i; // Вычисление X
+                PointsY[i] = (float)(9 * (Math.Pow(PointsX[i], 3) + Math.Pow(A, 3) * Math.Tan(PointsX[i])));
+            }
+
+            // Настройка графика
+            chrtMain.ChartAreas[0].AxisX.Minimum = MinX;
+            chrtMain.ChartAreas[0].AxisX.Maximum = MaxX;
+            chrtMain.ChartAreas[0].AxisX.MajorGrid.Interval = Step;
+            chrtMain.Series[0].Points.DataBindXY(PointsX, PointsY);
+        }
+    }
+}

+ 120 - 0
7.1 График/WinGraphsNet/WinGraphsNet/MainForm.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>

+ 22 - 0
7.1 График/WinGraphsNet/WinGraphsNet/Program.cs

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

+ 36 - 0
7.1 График/WinGraphsNet/WinGraphsNet/Properties/AssemblyInfo.cs

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

+ 70 - 0
7.1 График/WinGraphsNet/WinGraphsNet/Properties/Resources.Designer.cs

@@ -0,0 +1,70 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программным средством.
+//     Версия среды выполнения: 4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильному поведению и будут утрачены, если
+//     код создан повторно.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+
+namespace WinGraphsNet.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("WinGraphsNet.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
7.1 График/WinGraphsNet/WinGraphsNet/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
7.1 График/WinGraphsNet/WinGraphsNet/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 WinGraphsNet.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
7.1 График/WinGraphsNet/WinGraphsNet/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>

+ 84 - 0
7.1 График/WinGraphsNet/WinGraphsNet/WinGraphsNet.csproj

@@ -0,0 +1,84 @@
+<?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>{3050572D-7D99-4197-8D19-62E0B210003B}</ProjectGuid>
+    <OutputType>WinExe</OutputType>
+    <RootNamespace>WinGraphsNet</RootNamespace>
+    <AssemblyName>WinGraphsNet</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.Windows.Forms.DataVisualization" />
+    <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="MainForm.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="MainForm.Designer.cs">
+      <DependentUpon>MainForm.cs</DependentUpon>
+    </Compile>
+    <Compile Include="Program.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+    <EmbeddedResource Include="MainForm.resx">
+      <DependentUpon>MainForm.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>