Merge branch 'master' into nikpopl-patch-1

This commit is contained in:
Mikhail Abramov 2018-03-08 20:42:00 +04:00 committed by GitHub
commit 3b4678f60a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 340 additions and 72 deletions

View file

@ -22,6 +22,7 @@ struct Person
};
Person per;
Person per1;
int main()
@ -37,6 +38,18 @@ int main()
per.ampl_y = 150;
per.ampl_x = 10;
per1.x = 50;
per1.y = 50;
per1.angle = 0;
per1.nomer_kadra = 0;
per1.texture = txLoadImage("Pictures\\Personaj.bmp");
per1.MID_x = 500;
per1.MID_y = 300;
per1.rad = 200;
per1.skorost = 10;
while (!GetAsyncKeyState(VK_ESCAPE))
{
txSetColor(TX_RED);
@ -55,10 +68,20 @@ int main()
per.nomer_kadra = 0;
}
per1.angle++;
per1.x = per1.MID_x + per1.rad * cos (per1.angle / per1.skorost);
per1.y = per1.MID_y + per1.rad * sin (per1.angle / per1.skorost);
txTransparentBlt(txDC(), per1.x, per1.y, 55, 86, per1.texture, 0, 0, RGB(0, 255, 255));
txSleep(10);
txSleep(10);
}
txDeleteDC(per.texture);
txDeleteDC(per1.texture);
return 0;
}

View file

@ -59,6 +59,25 @@
this.ButtonAddChar = new System.Windows.Forms.Button();
this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.button3 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.button5 = new System.Windows.Forms.Button();
this.button6 = new System.Windows.Forms.Button();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.PictureBoxBackground)).BeginInit();
this.panel2.SuspendLayout();
@ -104,6 +123,25 @@
//
// panel1
//
this.panel1.Controls.Add(this.label13);
this.panel1.Controls.Add(this.label12);
this.panel1.Controls.Add(this.label11);
this.panel1.Controls.Add(this.label10);
this.panel1.Controls.Add(this.label9);
this.panel1.Controls.Add(this.label8);
this.panel1.Controls.Add(this.label7);
this.panel1.Controls.Add(this.label6);
this.panel1.Controls.Add(this.label4);
this.panel1.Controls.Add(this.label5);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.button4);
this.panel1.Controls.Add(this.button3);
this.panel1.Controls.Add(this.button2);
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.button6);
this.panel1.Controls.Add(this.button5);
this.panel1.Controls.Add(this.button1);
this.panel1.Controls.Add(this.PictureBoxBackground);
this.panel1.Controls.Add(this.LabelBackground);
this.panel1.Controls.Add(this.dobavitFonButton);
@ -114,14 +152,14 @@
this.panel1.Dock = System.Windows.Forms.DockStyle.Left;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(227, 296);
this.panel1.Size = new System.Drawing.Size(282, 380);
this.panel1.TabIndex = 4;
//
// PictureBoxBackground
//
this.PictureBoxBackground.Location = new System.Drawing.Point(17, 160);
this.PictureBoxBackground.Name = "PictureBoxBackground";
this.PictureBoxBackground.Size = new System.Drawing.Size(177, 88);
this.PictureBoxBackground.Size = new System.Drawing.Size(245, 55);
this.PictureBoxBackground.TabIndex = 12;
this.PictureBoxBackground.TabStop = false;
//
@ -146,9 +184,9 @@
//
// splitter1
//
this.splitter1.Location = new System.Drawing.Point(227, 0);
this.splitter1.Location = new System.Drawing.Point(282, 0);
this.splitter1.Name = "splitter1";
this.splitter1.Size = new System.Drawing.Size(3, 296);
this.splitter1.Size = new System.Drawing.Size(3, 380);
this.splitter1.TabIndex = 5;
this.splitter1.TabStop = false;
//
@ -159,17 +197,17 @@
this.panel2.Controls.Add(this.SaveMultButton);
this.panel2.Controls.Add(this.ButtonAddChar);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(230, 0);
this.panel2.Location = new System.Drawing.Point(285, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(408, 296);
this.panel2.Size = new System.Drawing.Size(392, 380);
this.panel2.TabIndex = 6;
//
// SaveCharButton
//
this.SaveCharButton.Dock = System.Windows.Forms.DockStyle.Bottom;
this.SaveCharButton.Location = new System.Drawing.Point(0, 236);
this.SaveCharButton.Location = new System.Drawing.Point(0, 320);
this.SaveCharButton.Name = "SaveCharButton";
this.SaveCharButton.Size = new System.Drawing.Size(408, 30);
this.SaveCharButton.Size = new System.Drawing.Size(392, 30);
this.SaveCharButton.TabIndex = 3;
this.SaveCharButton.Text = "Сохранить персонажа";
this.SaveCharButton.UseVisualStyleBackColor = true;
@ -195,7 +233,7 @@
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Location = new System.Drawing.Point(0, 26);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(408, 240);
this.panel3.Size = new System.Drawing.Size(392, 324);
this.panel3.TabIndex = 2;
this.panel3.Visible = false;
//
@ -340,9 +378,9 @@
// SaveMultButton
//
this.SaveMultButton.Dock = System.Windows.Forms.DockStyle.Bottom;
this.SaveMultButton.Location = new System.Drawing.Point(0, 266);
this.SaveMultButton.Location = new System.Drawing.Point(0, 350);
this.SaveMultButton.Name = "SaveMultButton";
this.SaveMultButton.Size = new System.Drawing.Size(408, 30);
this.SaveMultButton.Size = new System.Drawing.Size(392, 30);
this.SaveMultButton.TabIndex = 1;
this.SaveMultButton.Text = "Сохранить мульт";
this.SaveMultButton.UseVisualStyleBackColor = true;
@ -352,7 +390,7 @@
this.ButtonAddChar.Dock = System.Windows.Forms.DockStyle.Top;
this.ButtonAddChar.Location = new System.Drawing.Point(0, 0);
this.ButtonAddChar.Name = "ButtonAddChar";
this.ButtonAddChar.Size = new System.Drawing.Size(408, 26);
this.ButtonAddChar.Size = new System.Drawing.Size(392, 26);
this.ButtonAddChar.TabIndex = 0;
this.ButtonAddChar.Text = "Добавить персонажа";
this.ButtonAddChar.UseVisualStyleBackColor = true;
@ -362,11 +400,188 @@
//
this.openFileDialog1.FileName = "openFileDialog1";
//
// button1
//
this.button1.Location = new System.Drawing.Point(259, 321);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(26, 18);
this.button1.TabIndex = 17;
this.button1.Text = "Р";
this.button1.UseVisualStyleBackColor = true;
//
// button2
//
this.button2.Location = new System.Drawing.Point(188, 319);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(26, 18);
this.button2.TabIndex = 19;
this.button2.Text = "X";
this.button2.UseVisualStyleBackColor = true;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(6, 324);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(49, 13);
this.label1.TabIndex = 18;
this.label1.Text = "Котенок";
this.label1.Click += new System.EventHandler(this.label1_Click_1);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(58, 324);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(80, 13);
this.label3.TabIndex = 21;
this.label3.Text = "(2-12 секунды)";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(6, 342);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(49, 13);
this.label2.TabIndex = 18;
this.label2.Text = "Котенок";
this.label2.Click += new System.EventHandler(this.label1_Click_1);
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(58, 342);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(80, 13);
this.label4.TabIndex = 21;
this.label4.Text = "(2-12 секунды)";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(6, 361);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(49, 13);
this.label5.TabIndex = 18;
this.label5.Text = "Котенок";
this.label5.Click += new System.EventHandler(this.label1_Click_1);
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(61, 359);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(80, 13);
this.label6.TabIndex = 21;
this.label6.Text = "(2-12 секунды)";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(143, 359);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(13, 13);
this.label7.TabIndex = 21;
this.label7.Text = "3";
this.label7.Click += new System.EventHandler(this.label7_Click);
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(143, 342);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(13, 13);
this.label8.TabIndex = 21;
this.label8.Text = "2";
this.label8.Click += new System.EventHandler(this.label7_Click);
//
// label9
//
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(143, 324);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(13, 13);
this.label9.TabIndex = 21;
this.label9.Text = "1";
this.label9.Click += new System.EventHandler(this.label7_Click);
//
// 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 = "имя";
//
// 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 = "время";
//
// 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 = "номер";
//
// label13
//
this.label13.AutoSize = true;
this.label13.Location = new System.Drawing.Point(44, 232);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(180, 13);
this.label13.TabIndex = 23;
this.label13.Text = "ИНФОРМАЦИЯ О ПЕРСОНАЖАХ";
//
// button3
//
this.button3.Location = new System.Drawing.Point(188, 339);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(26, 18);
this.button3.TabIndex = 19;
this.button3.Text = "X";
this.button3.UseVisualStyleBackColor = true;
//
// button4
//
this.button4.Location = new System.Drawing.Point(188, 356);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(26, 18);
this.button4.TabIndex = 19;
this.button4.Text = "X";
this.button4.UseVisualStyleBackColor = true;
//
// button5
//
this.button5.Location = new System.Drawing.Point(259, 339);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(26, 18);
this.button5.TabIndex = 17;
this.button5.Text = "Р";
this.button5.UseVisualStyleBackColor = true;
//
// button6
//
this.button6.Location = new System.Drawing.Point(259, 356);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(26, 18);
this.button6.TabIndex = 17;
this.button6.Text = "Р";
this.button6.UseVisualStyleBackColor = true;
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(638, 296);
this.ClientSize = new System.Drawing.Size(677, 380);
this.Controls.Add(this.panel2);
this.Controls.Add(this.splitter1);
this.Controls.Add(this.panel1);
@ -417,6 +632,25 @@
private System.Windows.Forms.Label LabelBackground;
private System.Windows.Forms.Button dobavitFonButton;
private System.Windows.Forms.PictureBox PictureBoxBackground;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button6;
private System.Windows.Forms.Button button5;
}
}

View file

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@ -32,7 +32,6 @@ namespace WindowsFormsApplication1
private void Form1_Load(object sender, EventArgs e)
{
/*int i=0;
for (; i < 10; i++)
{
PictureBox pic2 = new PictureBox();
@ -75,9 +74,9 @@ namespace WindowsFormsApplication1
private void button4_Click(object sender, EventArgs e)
{
//Список всех файлов папки
//Создаешь из них массив (или список)
//Выбираешь рандомный номер
//Ñïèñîê âñåõ ôàéëîâ ïàïêè
//Ñîçäàåøü èç íèõ ìàññèâ (èëè ñïèñîê)
//Âûáèðàåøü ðàíäîìíûé íîìåð
//pictureBox1.Image = Image.FromFile("kartinka.jpg");
}
@ -143,7 +142,7 @@ namespace WindowsFormsApplication1
{
string filename = saveFileDialog1.FileName;
//filename.Replace("Вася", "Лох")
//filename.Replace("Âàñÿ ÍÅ", "Ëîõ")
file_beginning(filename);
sinus_create_person(filename);
open_while(filename);
@ -160,14 +159,12 @@ namespace WindowsFormsApplication1
}
File.Copy("kartinka.jpg", adres_papki + "\\Personaj.bmp", true);
MessageBox.Show("Файл сохранен");
MessageBox.Show("Ôàéë ñîõðàíåí");
}
}
private void sinus_create_person(string filename)
{
File.AppendAllText(filename, " Person per;" + Environment.NewLine);
File.AppendAllText(filename, Environment.NewLine);
File.AppendAllText(filename, " per.texture = txLoadImage(\"Pictures\\Personaj.bmp\");" + Environment.NewLine);
@ -187,23 +184,22 @@ namespace WindowsFormsApplication1
File.AppendAllText(filename, " txSetFillColor(TX_RED);" + Environment.NewLine);
File.AppendAllText(filename, " txRectangle(0, 0, txGetExtentX(), txGetExtentY());" + Environment.NewLine);
}
private void sinus3(string filename)
{
File.AppendAllText(filename, "txRectangle(0, 0, txGetExtentX(), txGetExtentY());" + Environment.NewLine);
File.AppendAllText(filename, "per.x++;" + Environment.NewLine);
File.AppendAllText(filename, " per.y = per.nach_dv + per.ampl_y * sin(per.x / per.ampl_x);" + Environment.NewLine);
File.AppendAllText(filename, " txTransparentBlt(txDC(), per.x, per.y, 55, 86, per.texture, 55 * per.nomer_kadra, 0, RGB(0, 255, 255));" + Environment.NewLine);
File.AppendAllText(filename, " per.nomer_kadra++;" + Environment.NewLine);
File.AppendAllText(filename, "if (per.nomer_kadra > 2)" + Environment.NewLine);
File.AppendAllText(filename, "{" + Environment.NewLine);
File.AppendAllText(filename, " per.nomer_kadra = 0;" + Environment.NewLine);
File.AppendAllText(filename, "}" + Environment.NewLine);
File.AppendAllText(filename, " per.x++;" + Environment.NewLine);
File.AppendAllText(filename, " per.y = per.nach_dv + per.ampl_y * sin(per.x / per.ampl_x);" + Environment.NewLine);
File.AppendAllText(filename, " txTransparentBlt(txDC(), per.x, per.y, 55, 86, per.texture, 55 * per.nomer_kadra, 0, RGB(0, 255, 255));" + Environment.NewLine);
File.AppendAllText(filename, Environment.NewLine);
File.AppendAllText(filename, " per.nomer_kadra++;" + Environment.NewLine);
File.AppendAllText(filename, " if (per.nomer_kadra > 2)" + Environment.NewLine);
File.AppendAllText(filename, " {" + Environment.NewLine);
File.AppendAllText(filename, " per.nomer_kadra = 0;" + Environment.NewLine);
File.AppendAllText(filename, " }" + Environment.NewLine);
}
private void sinus4(string filename)
{
File.AppendAllText(filename, " txSleep(10);" + Environment.NewLine);
File.AppendAllText(filename, " }" + Environment.NewLine);
File.AppendAllText(filename, Environment.NewLine);
@ -212,42 +208,41 @@ namespace WindowsFormsApplication1
private void circle(string filename)
{
File.AppendAllText(filename, Environment.NewLine);
File.AppendAllText(filename, "txCreateWindow(800, 600)"+ Environment.NewLine);
File.AppendAllText(filename, "HDC texture = txLoadImage(\"Pictures\\Personaj.bmp);" + Environment.NewLine);
File.AppendAllText(filename, "double textureX = 50"+ Environment.NewLine);
File.AppendAllText(filename, "double textureY = 50"+ Environment.NewLine);
File.AppendAllText(filename, "double angle = 0"+ Environment.NewLine);
File.AppendAllText(filename, "double nomer_kadra = 0"+ Environment.NewLine);
File.AppendAllText(filename, "while (!GetAsyncKeyState(VK_ESCAPE))"+ Environment.NewLine);
File.AppendAllText(filename, "{"+ Environment.NewLine);
File.AppendAllText(filename, "txSetColor(TX_RED)"+ Environment.NewLine);
File.AppendAllText(filename, "txSetFillColor(TX_RED)"+ Environment.NewLine);
File.AppendAllText(filename, "txRectangle(0, 0, txGetExtentX(), txGetExtentY())"+ Environment.NewLine);
File.AppendAllText(filename, "angle++"+ Environment.NewLine);
File.AppendAllText(filename, "textureX = 500 + 200 * cos (angle / 10)"+ Environment.NewLine);
File.AppendAllText(filename, "textureY = 300 + 200 * sin (angle / 10)"+ Environment.NewLine);
File.AppendAllText(filename, "txTransparentBlt(txDC(), textureX, textureY, 55, 86, texture, 55 * nomer_kadra, 0, RGB(0, 255, 255))"+ Environment.NewLine);
File.AppendAllText(filename, "nomer_kadra++"+ Environment.NewLine);
File.AppendAllText(filename, "if (nomer_kadra > 2)"+ Environment.NewLine);
File.AppendAllText(filename, "{"+ Environment.NewLine);
File.AppendAllText(filename, "nomer_kadra = 0"+ Environment.NewLine);
File.AppendAllText(filename, "}"+ Environment.NewLine);
File.AppendAllText(filename, "txSleep(10)"+ Environment.NewLine);
File.AppendAllText(filename, "}"+ Environment.NewLine);
File.AppendAllText(filename, "txDeleteDC(texture)"+ Environment.NewLine);
File.AppendAllText(filename, "return 0"+ Environment.NewLine);
File.AppendAllText(filename, "}"+ Environment.NewLine);
File.AppendAllText(filename, Environment.NewLine);
File.AppendAllText(filename, "txCreateWindow(800, 600);"+ Environment.NewLine);
File.AppendAllText(filename, Environment.NewLine);
File.AppendAllText(filename, " HDC texture = txLoadImage(\"Pictures\\Personaj.bmp);" + Environment.NewLine);
File.AppendAllText(filename, Environment.NewLine);
File.AppendAllText(filename, " double textureX = 50;"+ Environment.NewLine);
File.AppendAllText(filename, " double textureY = 50;"+ Environment.NewLine);
File.AppendAllText(filename, " double angle = 0;"+ Environment.NewLine);
File.AppendAllText(filename, " double nomer_kadra = 0;"+ Environment.NewLine);
File.AppendAllText(filename, Environment.NewLine);
File.AppendAllText(filename, " while (!GetAsyncKeyState(VK_ESCAPE))"+ Environment.NewLine);
File.AppendAllText(filename, " {"+ Environment.NewLine);
File.AppendAllText(filename, " txSetColor(TX_RED);"+ Environment.NewLine);
File.AppendAllText(filename, " txSetFillColor(TX_RED);"+ Environment.NewLine);
File.AppendAllText(filename, " txRectangle(0, 0, txGetExtentX(), txGetExtentY());"+ Environment.NewLine);
File.AppendAllText(filename, Environment.NewLine);
File.AppendAllText(filename, " angle++;"+ Environment.NewLine);
File.AppendAllText(filename, " textureX = 500 + 200 * cos (angle / 10);"+ Environment.NewLine);
File.AppendAllText(filename, " textureY = 300 + 200 * sin (angle / 10);"+ Environment.NewLine);
File.AppendAllText(filename, " txTransparentBlt(txDC(), textureX, textureY, 55, 86, texture, 55 * nomer_kadra, 0, RGB(0, 255, 255));"+ Environment.NewLine);
File.AppendAllText(filename, Environment.NewLine);
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, " nomer_kadra = 0;"+ Environment.NewLine);
File.AppendAllText(filename, " }"+ Environment.NewLine);
File.AppendAllText(filename, Environment.NewLine);
File.AppendAllText(filename, " txSleep(10);"+ Environment.NewLine);
File.AppendAllText(filename, " }"+ Environment.NewLine);
File.AppendAllText(filename, Environment.NewLine);
File.AppendAllText(filename, "txDeleteDC(texture);"+ Environment.NewLine);
File.AppendAllText(filename, Environment.NewLine);
File.AppendAllText(filename, "return 0;"+ Environment.NewLine);
File.AppendAllText(filename, "}"+ Environment.NewLine);
}
@ -258,7 +253,7 @@ namespace WindowsFormsApplication1
string filename = openFileDialog1.FileName;
string fileText =File.ReadAllText(filename);
nazvanieTextBox.Text = fileText;
MessageBox.Show("Файл открыт");
MessageBox.Show("Ôàéë îòêðûò");
}
private void textBox6_TextChanged(object sender, EventArgs e)
@ -288,7 +283,7 @@ namespace WindowsFormsApplication1
string filename = openFileDialog1.FileName;
string fileText =File.ReadAllText(filename);
nazvanieTextBox.Text = fileText;
//MessageBox.Show("Файл открыт");
//MessageBox.Show("Ôàéë îòêðûò");
PictureBoxBackground.Image = Image.FromFile("kartinka.jpg");
}
@ -301,5 +296,20 @@ namespace WindowsFormsApplication1
{
}
private void label2_Click(object sender, EventArgs e)
{
}
private void label1_Click_1(object sender, EventArgs e)
{
}
private void label7_Click(object sender, EventArgs e)
{
}
}
}

View file

@ -34,6 +34,7 @@
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.DirectoryServices" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />