Browse Source

Выполнено задание из практической работы №7 - Построение графика функции

Егор 1 năm trước cách đây
commit
e1c05d3c39

+ 6 - 0
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>

+ 223 - 0
FormMain.Designer.cs

@@ -0,0 +1,223 @@
+namespace WindowsFormsAppUP02._02Alekseev7
+{
+    partial class FormMain
+    {
+        /// <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.chtGrafic = new System.Windows.Forms.DataVisualization.Charting.Chart();
+            this.tbValueXMin = new System.Windows.Forms.TextBox();
+            this.tbValueXMax = new System.Windows.Forms.TextBox();
+            this.tbValueStep = new System.Windows.Forms.TextBox();
+            this.lbValueXMIn = new System.Windows.Forms.Label();
+            this.lbValueXMax = new System.Windows.Forms.Label();
+            this.lbValueStep = new System.Windows.Forms.Label();
+            this.btnResultValue = new System.Windows.Forms.Button();
+            this.tbValueA = new System.Windows.Forms.TextBox();
+            this.tbValueB = new System.Windows.Forms.TextBox();
+            this.tbValueC = new System.Windows.Forms.TextBox();
+            this.lbValueA = new System.Windows.Forms.Label();
+            this.lbValueB = new System.Windows.Forms.Label();
+            this.lbValueC = new System.Windows.Forms.Label();
+            ((System.ComponentModel.ISupportInitialize)(this.chtGrafic)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // chtGrafic
+            // 
+            chartArea1.Name = "ChartArea1";
+            this.chtGrafic.ChartAreas.Add(chartArea1);
+            legend1.Name = "Legend1";
+            this.chtGrafic.Legends.Add(legend1);
+            this.chtGrafic.Location = new System.Drawing.Point(227, 145);
+            this.chtGrafic.Name = "chtGrafic";
+            series1.BorderWidth = 3;
+            series1.ChartArea = "ChartArea1";
+            series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Spline;
+            series1.Color = System.Drawing.Color.Violet;
+            series1.Legend = "Legend1";
+            series1.Name = "Табулирование функции";
+            this.chtGrafic.Series.Add(series1);
+            this.chtGrafic.Size = new System.Drawing.Size(721, 300);
+            this.chtGrafic.TabIndex = 0;
+            this.chtGrafic.Text = "chart1";
+            // 
+            // tbValueXMin
+            // 
+            this.tbValueXMin.Location = new System.Drawing.Point(249, 488);
+            this.tbValueXMin.Name = "tbValueXMin";
+            this.tbValueXMin.Size = new System.Drawing.Size(100, 20);
+            this.tbValueXMin.TabIndex = 1;
+            // 
+            // tbValueXMax
+            // 
+            this.tbValueXMax.Location = new System.Drawing.Point(424, 487);
+            this.tbValueXMax.Name = "tbValueXMax";
+            this.tbValueXMax.Size = new System.Drawing.Size(100, 20);
+            this.tbValueXMax.TabIndex = 2;
+            // 
+            // tbValueStep
+            // 
+            this.tbValueStep.Location = new System.Drawing.Point(590, 487);
+            this.tbValueStep.Name = "tbValueStep";
+            this.tbValueStep.Size = new System.Drawing.Size(100, 20);
+            this.tbValueStep.TabIndex = 3;
+            // 
+            // lbValueXMIn
+            // 
+            this.lbValueXMIn.AutoSize = true;
+            this.lbValueXMIn.Location = new System.Drawing.Point(249, 469);
+            this.lbValueXMIn.Name = "lbValueXMIn";
+            this.lbValueXMIn.Size = new System.Drawing.Size(30, 13);
+            this.lbValueXMIn.TabIndex = 4;
+            this.lbValueXMIn.Text = "Xmin";
+            // 
+            // lbValueXMax
+            // 
+            this.lbValueXMax.AutoSize = true;
+            this.lbValueXMax.Location = new System.Drawing.Point(424, 469);
+            this.lbValueXMax.Name = "lbValueXMax";
+            this.lbValueXMax.Size = new System.Drawing.Size(33, 13);
+            this.lbValueXMax.TabIndex = 5;
+            this.lbValueXMax.Text = "Xmax";
+            // 
+            // lbValueStep
+            // 
+            this.lbValueStep.AutoSize = true;
+            this.lbValueStep.Location = new System.Drawing.Point(590, 468);
+            this.lbValueStep.Name = "lbValueStep";
+            this.lbValueStep.Size = new System.Drawing.Size(27, 13);
+            this.lbValueStep.TabIndex = 6;
+            this.lbValueStep.Text = "Шаг";
+            // 
+            // btnResultValue
+            // 
+            this.btnResultValue.Location = new System.Drawing.Point(729, 487);
+            this.btnResultValue.Name = "btnResultValue";
+            this.btnResultValue.Size = new System.Drawing.Size(75, 23);
+            this.btnResultValue.TabIndex = 7;
+            this.btnResultValue.Text = "Расчет!";
+            this.btnResultValue.UseVisualStyleBackColor = true;
+            this.btnResultValue.Click += new System.EventHandler(this.btnResultValueClick);
+            // 
+            // tbValueA
+            // 
+            this.tbValueA.Location = new System.Drawing.Point(83, 163);
+            this.tbValueA.Name = "tbValueA";
+            this.tbValueA.Size = new System.Drawing.Size(100, 20);
+            this.tbValueA.TabIndex = 8;
+            // 
+            // tbValueB
+            // 
+            this.tbValueB.Location = new System.Drawing.Point(83, 203);
+            this.tbValueB.Name = "tbValueB";
+            this.tbValueB.Size = new System.Drawing.Size(100, 20);
+            this.tbValueB.TabIndex = 9;
+            // 
+            // tbValueC
+            // 
+            this.tbValueC.Location = new System.Drawing.Point(83, 245);
+            this.tbValueC.Name = "tbValueC";
+            this.tbValueC.Size = new System.Drawing.Size(100, 20);
+            this.tbValueC.TabIndex = 10;
+            // 
+            // lbValueA
+            // 
+            this.lbValueA.AutoSize = true;
+            this.lbValueA.Location = new System.Drawing.Point(51, 166);
+            this.lbValueA.Name = "lbValueA";
+            this.lbValueA.Size = new System.Drawing.Size(26, 13);
+            this.lbValueA.TabIndex = 11;
+            this.lbValueA.Text = "А = ";
+            // 
+            // lbValueB
+            // 
+            this.lbValueB.AutoSize = true;
+            this.lbValueB.Location = new System.Drawing.Point(51, 206);
+            this.lbValueB.Name = "lbValueB";
+            this.lbValueB.Size = new System.Drawing.Size(26, 13);
+            this.lbValueB.TabIndex = 12;
+            this.lbValueB.Text = "B = ";
+            // 
+            // lbValueC
+            // 
+            this.lbValueC.AutoSize = true;
+            this.lbValueC.Location = new System.Drawing.Point(51, 248);
+            this.lbValueC.Name = "lbValueC";
+            this.lbValueC.Size = new System.Drawing.Size(26, 13);
+            this.lbValueC.TabIndex = 13;
+            this.lbValueC.Text = "C = ";
+            // 
+            // FormMain
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(1052, 612);
+            this.Controls.Add(this.lbValueC);
+            this.Controls.Add(this.lbValueB);
+            this.Controls.Add(this.lbValueA);
+            this.Controls.Add(this.tbValueC);
+            this.Controls.Add(this.tbValueB);
+            this.Controls.Add(this.tbValueA);
+            this.Controls.Add(this.btnResultValue);
+            this.Controls.Add(this.lbValueStep);
+            this.Controls.Add(this.lbValueXMax);
+            this.Controls.Add(this.lbValueXMIn);
+            this.Controls.Add(this.tbValueStep);
+            this.Controls.Add(this.tbValueXMax);
+            this.Controls.Add(this.tbValueXMin);
+            this.Controls.Add(this.chtGrafic);
+            this.Name = "FormMain";
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
+            this.Text = "Построение графика функций";
+            this.Load += new System.EventHandler(this.FormMain_Load);
+            ((System.ComponentModel.ISupportInitialize)(this.chtGrafic)).EndInit();
+            this.ResumeLayout(false);
+            this.PerformLayout();
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.DataVisualization.Charting.Chart chtGrafic;
+        private System.Windows.Forms.TextBox tbValueXMin;
+        private System.Windows.Forms.TextBox tbValueXMax;
+        private System.Windows.Forms.TextBox tbValueStep;
+        private System.Windows.Forms.Label lbValueXMIn;
+        private System.Windows.Forms.Label lbValueXMax;
+        private System.Windows.Forms.Label lbValueStep;
+        private System.Windows.Forms.Button btnResultValue;
+        private System.Windows.Forms.TextBox tbValueA;
+        private System.Windows.Forms.TextBox tbValueB;
+        private System.Windows.Forms.TextBox tbValueC;
+        private System.Windows.Forms.Label lbValueA;
+        private System.Windows.Forms.Label lbValueB;
+        private System.Windows.Forms.Label lbValueC;
+    }
+}
+

+ 77 - 0
FormMain.cs

@@ -0,0 +1,77 @@
+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 WindowsFormsAppUP02._02Alekseev7
+{
+    /// <summary>
+    /// Класс, в котором просходит построение графика, настройка графика, подстановка значений в график, вычисление значений для X, Y, 
+    /// подстановка значений в переменный, изменение цвета формы
+    /// </summary>
+    public partial class FormMain : Form
+    {
+        /// <summary>
+        /// Метод инициализации компонентов
+        /// </summary>
+        public FormMain()
+        {
+            InitializeComponent();
+        }
+
+        /// <summary>
+        /// Метод кнопки, в котором происходит считывание данных переменных, вычисление значений, построение графика функции
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void btnResultValueClick(object sender, EventArgs e)
+        {
+            double A = double.Parse(tbValueA.Text);
+            double B = double.Parse(tbValueB.Text);
+            double C = double.Parse(tbValueC.Text);
+
+
+            double Xmin = double.Parse(tbValueXMin.Text);
+            double Xmax = double.Parse(tbValueXMax.Text);
+            double Step = double.Parse(tbValueStep.Text);
+
+            int count = (int)Math.Ceiling((Xmax - Xmin) / Step) + 1;
+            double[] X = new double[count];
+            double[] Y = new double[count];
+;
+
+
+            for (int i = 0; i < count; i++)
+            {
+                X[i] = Xmin + (Step * i);
+                Y[i] = Math.Round(((10e-2 * B * C) / X[i]) + Math.Cos(Math.Sqrt(Math.Pow(A, 3) * X[i])) , 2);
+            }
+            chtGrafic.ChartAreas[0].AxisX.Minimum = Xmin;
+            chtGrafic.ChartAreas[0].AxisX.Minimum = Xmax;
+
+            chtGrafic.ChartAreas[0].AxisX.MajorGrid.Interval = Step;
+
+            chtGrafic.Series[0].Points.DataBindXY(X , Y);
+        }
+
+        /// <summary>
+        /// Метод загрузки формы, в котором меняется цвет формы, подставляются значения в TextBox
+        /// </summary>
+        /// <param name="sender"></param>
+        /// <param name="e"></param>
+        private void FormMain_Load(object sender, EventArgs e)
+        {
+            BackColor = Color.AntiqueWhite;
+            tbValueA.Text = "5";
+            tbValueB.Text = "-2";
+            tbValueC.Text = "10";
+
+
+        }
+    }
+}

+ 120 - 0
FormMain.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
Program.cs

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

+ 36 - 0
Properties/AssemblyInfo.cs

@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// Общие сведения об этой сборке предоставляются следующим набором
+// набора атрибутов. Измените значения этих атрибутов для изменения сведений,
+// связанных со сборкой.
+[assembly: AssemblyTitle("WindowsFormsAppUP02.02Alekseev7")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("WindowsFormsAppUP02.02Alekseev7")]
+[assembly: AssemblyCopyright("Copyright ©  2024")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми
+// для компонентов COM. Если необходимо обратиться к типу в этой сборке через
+// COM, следует установить атрибут ComVisible в TRUE для этого типа.
+[assembly: ComVisible(false)]
+
+// Следующий GUID служит для идентификации библиотеки типов, если этот проект будет видимым для COM
+[assembly: Guid("c73ed663-b49d-47d7-aad1-13a3479ef46c")]
+
+// Сведения о версии сборки состоят из указанных ниже четырех значений:
+//
+//      Основной номер версии
+//      Дополнительный номер версии
+//      Номер сборки
+//      Редакция
+//
+// Можно задать все значения или принять номера сборки и редакции по умолчанию 
+// используя "*", как показано ниже:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]

+ 71 - 0
Properties/Resources.Designer.cs

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

+ 30 - 0
Properties/Settings.Designer.cs

@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+// <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 WindowsFormsAppUP02._02Alekseev7.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
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
WindowsFormsAppUP02.02Alekseev7.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>{C73ED663-B49D-47D7-AAD1-13A3479EF46C}</ProjectGuid>
+    <OutputType>WinExe</OutputType>
+    <RootNamespace>WindowsFormsAppUP02._02Alekseev7</RootNamespace>
+    <AssemblyName>WindowsFormsAppUP02.02Alekseev7</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="FormMain.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="FormMain.Designer.cs">
+      <DependentUpon>FormMain.cs</DependentUpon>
+    </Compile>
+    <Compile Include="Program.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+    <EmbeddedResource Include="FormMain.resx">
+      <DependentUpon>FormMain.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>

BIN
bin/Debug/WindowsFormsAppUP02.02Alekseev7.exe


+ 6 - 0
bin/Debug/WindowsFormsAppUP02.02Alekseev7.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
bin/Debug/WindowsFormsAppUP02.02Alekseev7.pdb


+ 4 - 0
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
obj/Debug/DesignTimeResolveAssemblyReferences.cache


BIN
obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache


BIN
obj/Debug/WindowsFormsAppUP02.02Alekseev7.csproj.AssemblyReference.cache


+ 1 - 0
obj/Debug/WindowsFormsAppUP02.02Alekseev7.csproj.CoreCompileInputs.cache

@@ -0,0 +1 @@
+a420ad9e954973c8607f2d842077592b9dc6b880

+ 11 - 0
obj/Debug/WindowsFormsAppUP02.02Alekseev7.csproj.FileListAbsolute.txt

@@ -0,0 +1,11 @@
+D:\УП 02.02 С# 52\WindowsFormsAppUP02.02Alekseev\WindowsFormsAppUP02.02Alekseev7\bin\Debug\WindowsFormsAppUP02.02Alekseev7.exe.config
+D:\УП 02.02 С# 52\WindowsFormsAppUP02.02Alekseev\WindowsFormsAppUP02.02Alekseev7\bin\Debug\WindowsFormsAppUP02.02Alekseev7.exe
+D:\УП 02.02 С# 52\WindowsFormsAppUP02.02Alekseev\WindowsFormsAppUP02.02Alekseev7\bin\Debug\WindowsFormsAppUP02.02Alekseev7.pdb
+D:\УП 02.02 С# 52\WindowsFormsAppUP02.02Alekseev\WindowsFormsAppUP02.02Alekseev7\obj\Debug\WindowsFormsAppUP02.02Alekseev7.csproj.AssemblyReference.cache
+D:\УП 02.02 С# 52\WindowsFormsAppUP02.02Alekseev\WindowsFormsAppUP02.02Alekseev7\obj\Debug\WindowsFormsAppUP02.02Alekseev7.csproj.SuggestedBindingRedirects.cache
+D:\УП 02.02 С# 52\WindowsFormsAppUP02.02Alekseev\WindowsFormsAppUP02.02Alekseev7\obj\Debug\WindowsFormsAppUP02._02Alekseev7.FormMain.resources
+D:\УП 02.02 С# 52\WindowsFormsAppUP02.02Alekseev\WindowsFormsAppUP02.02Alekseev7\obj\Debug\WindowsFormsAppUP02._02Alekseev7.Properties.Resources.resources
+D:\УП 02.02 С# 52\WindowsFormsAppUP02.02Alekseev\WindowsFormsAppUP02.02Alekseev7\obj\Debug\WindowsFormsAppUP02.02Alekseev7.csproj.GenerateResource.cache
+D:\УП 02.02 С# 52\WindowsFormsAppUP02.02Alekseev\WindowsFormsAppUP02.02Alekseev7\obj\Debug\WindowsFormsAppUP02.02Alekseev7.csproj.CoreCompileInputs.cache
+D:\УП 02.02 С# 52\WindowsFormsAppUP02.02Alekseev\WindowsFormsAppUP02.02Alekseev7\obj\Debug\WindowsFormsAppUP02.02Alekseev7.exe
+D:\УП 02.02 С# 52\WindowsFormsAppUP02.02Alekseev\WindowsFormsAppUP02.02Alekseev7\obj\Debug\WindowsFormsAppUP02.02Alekseev7.pdb

BIN
obj/Debug/WindowsFormsAppUP02.02Alekseev7.csproj.GenerateResource.cache


+ 0 - 0
obj/Debug/WindowsFormsAppUP02.02Alekseev7.csproj.SuggestedBindingRedirects.cache


BIN
obj/Debug/WindowsFormsAppUP02.02Alekseev7.exe


BIN
obj/Debug/WindowsFormsAppUP02.02Alekseev7.pdb


BIN
obj/Debug/WindowsFormsAppUP02._02Alekseev7.FormMain.resources


BIN
obj/Debug/WindowsFormsAppUP02._02Alekseev7.Properties.Resources.resources