Эх сурвалжийг харах

Исправил 4 задание

alpo8341 2 жил өмнө
parent
commit
091aada442

BIN
Prakt4/WindowsFormsApp1/.vs/WindowsFormsApp1/v16/.suo


+ 5 - 4
Prakt4/WindowsFormsApp1/WindowsFormsApp1/CycleAlgoritm.Designer.cs → Prakt4/WindowsFormsApp1/WindowsFormsApp1/FormCycleAlgoritm.Designer.cs

@@ -1,7 +1,7 @@
 
 namespace WindowsFormsApp1
 {
-    partial class СycleAlgoritm
+    partial class FormСycleAlgoritm
     {
         /// <summary>
         /// Обязательная переменная конструктора.
@@ -29,7 +29,7 @@ namespace WindowsFormsApp1
         /// </summary>
         private void InitializeComponent()
         {
-            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(СycleAlgoritm));
+            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormСycleAlgoritm));
             this.label1 = new System.Windows.Forms.Label();
             this.label2 = new System.Windows.Forms.Label();
             this.label3 = new System.Windows.Forms.Label();
@@ -126,7 +126,7 @@ namespace WindowsFormsApp1
             this.btnCalculate.UseVisualStyleBackColor = true;
             this.btnCalculate.Click += new System.EventHandler(this.btnCalculate_Click);
             // 
-            // СycleAlgoritm
+            // FormСycleAlgoritm
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
@@ -141,8 +141,9 @@ namespace WindowsFormsApp1
             this.Controls.Add(this.label2);
             this.Controls.Add(this.label1);
             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
-            this.Name = "СycleAlgoritm";
+            this.Name = "FormСycleAlgoritm";
             this.ShowIcon = false;
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             this.Text = "Сycle algoritm";
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
             this.ResumeLayout(false);

+ 3 - 2
Prakt4/WindowsFormsApp1/WindowsFormsApp1/CycleAlgoritm.cs → Prakt4/WindowsFormsApp1/WindowsFormsApp1/FormCycleAlgoritm.cs

@@ -11,7 +11,7 @@ using System.Windows.Forms;
 namespace WindowsFormsApp1
 {
    
-    public partial class СycleAlgoritm : Form
+    public partial class FormСycleAlgoritm : Form
     {
         /// <summary>
         /// Метод для получения числа от пользователя
@@ -59,13 +59,14 @@ namespace WindowsFormsApp1
             CalculateNum(ref x0, ref xk, ref dx);
             double x = x0;
             //Цикл с вычислением и выводом ответа
+            tbOutput.Text += "Выполнил Санников Игорь" + Environment.NewLine;
             for (double i = x; i <= xk; i += dx)
             {
                 y = Math.Round((Math.Pow(Math.Log(Math.Sin(Math.Pow(i, 3) + 0.0025)), 3 / 2)) + (0.8 * Math.Pow(10, -3)), 4);
                 tbOutput.Text += "x = " + i + "; y = " + y + Environment.NewLine;
             }
         }
-        public СycleAlgoritm()
+        public FormСycleAlgoritm()
         {
             InitializeComponent();
         }

+ 0 - 0
Prakt4/WindowsFormsApp1/WindowsFormsApp1/CycleAlgoritm.resx → Prakt4/WindowsFormsApp1/WindowsFormsApp1/FormCycleAlgoritm.resx


+ 1 - 1
Prakt4/WindowsFormsApp1/WindowsFormsApp1/Program.cs

@@ -16,7 +16,7 @@ namespace WindowsFormsApp1
         {
             Application.EnableVisualStyles();
             Application.SetCompatibleTextRenderingDefault(false);
-            Application.Run(new СycleAlgoritm());
+            Application.Run(new FormСycleAlgoritm());
         }
     }
 }

+ 0 - 0
Prakt4/WindowsFormsApp1/WindowsFormsApp1/WindowsFormsApp1.csproj → Prakt4/WindowsFormsApp1/WindowsFormsApp1/WindowsFormsAppPrak4.csproj


BIN
Prakt4/WindowsFormsApp1/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.exe


BIN
Prakt4/WindowsFormsApp1/WindowsFormsApp1/bin/Debug/WindowsFormsApp1.pdb


BIN
Prakt4/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.csproj.GenerateResource.cache


BIN
Prakt4/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.exe


BIN
Prakt4/WindowsFormsApp1/WindowsFormsApp1/obj/Debug/WindowsFormsApp1.pdb