diff --git a/WindowsFormsApplication1/WindowsFormsApplication1/MainForm.Designer.cs b/WindowsFormsApplication1/WindowsFormsApplication1/MainForm.Designer.cs index b707aa0..950eac4 100644 --- a/WindowsFormsApplication1/WindowsFormsApplication1/MainForm.Designer.cs +++ b/WindowsFormsApplication1/WindowsFormsApplication1/MainForm.Designer.cs @@ -124,33 +124,6 @@ namespace WindowsFormsApplication1 this.label13.Size = new System.Drawing.Size(180, 13); this.label13.TabIndex = 23; this.label13.Text = "ИНФОРМАЦИЯ О ПЕРСОНАЖАХ"; - // - // label12 - // - this.label12.AutoSize = true; - this.label12.Location = new System.Drawing.Point(143, 308); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(39, 13); - this.label12.TabIndex = 22; - this.label12.Text = "номер"; - // - // label11 - // - this.label11.AutoSize = true; - this.label11.Location = new System.Drawing.Point(79, 308); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(39, 13); - this.label11.TabIndex = 22; - this.label11.Text = "время"; - // - // label10 - // - this.label10.AutoSize = true; - this.label10.Location = new System.Drawing.Point(9, 308); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(27, 13); - this.label10.TabIndex = 22; - this.label10.Text = "имя"; // PictureBoxBackground // this.PictureBoxBackground.Location = new System.Drawing.Point(17, 160); diff --git a/WindowsFormsApplication1/WindowsFormsApplication1/MainForm.cs b/WindowsFormsApplication1/WindowsFormsApplication1/MainForm.cs index 1a20b02..2f1c34a 100644 --- a/WindowsFormsApplication1/WindowsFormsApplication1/MainForm.cs +++ b/WindowsFormsApplication1/WindowsFormsApplication1/MainForm.cs @@ -154,8 +154,8 @@ namespace WindowsFormsApplication1 private void old_place(string filename, string name) { - File.AppendAllText(filename, " " + name + ".x = 10; " + Environment.NewLine); - File.AppendAllText(filename, " " + name + ".y = 10; " + Environment.NewLine); + File.AppendAllText(filename, " " + name + ".x =TextBox ++ 10; " + Environment.NewLine); + File.AppendAllText(filename, " " + name + ".yTextBox ++ 10; " + Environment.NewLine); File.AppendAllText(filename, " " + name + ".nomer_kadra = 0; " + Environment.NewLine); File.AppendAllText(filename, " " + name + ".gr_dvigx = 1000; " + Environment.NewLine); } @@ -165,7 +165,7 @@ namespace WindowsFormsApplication1 File.AppendAllText(filename, " txTransparentBlt(txDC(), " + name + ".x, " + name + ".y, 55, 86, " + name + ".texture, 55 * " + name + ".nomer_kadra, 0, RGB(0, 255, 255)); " + Environment.NewLine); File.AppendAllText(filename, " " + name + ".x++; " + Environment.NewLine); File.AppendAllText(filename, " " + name + ".nomer_kadra++;" + Environment.NewLine); - File.AppendAllText(filename, " if (" + name + ".nomer_kadra > 2) " + Environment.NewLine); + File.AppendAllText(filename, " if (" + name + ".nomer_kadra > " + TextBoxWall1.Text + ") " + Environment.NewLine); File.AppendAllText(filename, " { " + Environment.NewLine); File.AppendAllText(filename, " " + name + ".nomer_kadra = 0;" + Environment.NewLine); File.AppendAllText(filename, " }" + Environment.NewLine); @@ -183,9 +183,9 @@ namespace WindowsFormsApplication1 File.AppendAllText(filename, " nomer_kadra++;"+ Environment.NewLine); File.AppendAllText(filename, Environment.NewLine); File.AppendAllText(filename, " if (nomer_kadra > 2)"+ Environment.NewLine); - File.AppendAllText(filename, " {"+ Environment.NewLine); + File.AppendAllText(filename, " {"+ Environment.NewLine); File.AppendAllText(filename, " nomer_kadra = 0;"+ Environment.NewLine); - File.AppendAllText(filename, " }"+ Environment.NewLine); + File.AppendAllText(filename, " }"+ Environment.NewLine); File.AppendAllText(filename, Environment.NewLine); File.AppendAllText(filename, " txSleep(10);"+ Environment.NewLine); File.AppendAllText(filename, " }"+ Environment.NewLine); @@ -275,10 +275,5 @@ namespace WindowsFormsApplication1 } } } - - private void SaveMultButton_Click(object sender, EventArgs e) - { - //надо - } } }