diff --git a/WindowsFormsApplication1/WindowsFormsApplication1/MainForm.Designer.cs b/WindowsFormsApplication1/WindowsFormsApplication1/MainForm.Designer.cs
new file mode 100644
index 0000000..6bcad7d
--- /dev/null
+++ b/WindowsFormsApplication1/WindowsFormsApplication1/MainForm.Designer.cs
@@ -0,0 +1,421 @@
+namespace WindowsFormsApplication1
+{
+ partial class MainForm
+ {
+ ///
+ /// Требуется переменная конструктора.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Освободить все используемые ресурсы.
+ ///
+ /// истинно, если управляемый ресурс должен быть удален; иначе ложно.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Код, автоматически созданный конструктором форм Windows
+
+ ///
+ /// Обязательный метод для поддержки конструктора - не изменяйте
+ /// содержимое данного метода при помощи редактора кода.
+ ///
+ private void InitializeComponent()
+ {
+ this.LabelData = new System.Windows.Forms.Label();
+ this.LabelLengh = new System.Windows.Forms.Label();
+ this.LabelName = new System.Windows.Forms.Label();
+ this.nazvanieTextBox = new System.Windows.Forms.TextBox();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.PictureBoxBackground = new System.Windows.Forms.PictureBox();
+ this.LabelBackground = new System.Windows.Forms.Label();
+ this.dobavitFonButton = new System.Windows.Forms.Button();
+ this.splitter1 = new System.Windows.Forms.Splitter();
+ this.panel2 = new System.Windows.Forms.Panel();
+ this.SaveCharButton = new System.Windows.Forms.Button();
+ this.panel3 = new System.Windows.Forms.Panel();
+ this.SpriteNumberLabel = new System.Windows.Forms.Label();
+ this.SpriteNumberTextBox = new System.Windows.Forms.TextBox();
+ this.OpenButton = new System.Windows.Forms.Button();
+ this.AddPictureButton = new System.Windows.Forms.Button();
+ this.LabelPic = new System.Windows.Forms.Label();
+ this.LabelTime = new System.Windows.Forms.Label();
+ this.LabelDef2 = new System.Windows.Forms.Label();
+ this.LabelDef1 = new System.Windows.Forms.Label();
+ this.LabelWalls = new System.Windows.Forms.Label();
+ this.TextBoxTime1 = new System.Windows.Forms.TextBox();
+ this.TextBoxTime2 = new System.Windows.Forms.TextBox();
+ this.TextBoxWall2 = new System.Windows.Forms.TextBox();
+ this.TextBoxWall1 = new System.Windows.Forms.TextBox();
+ this.ComboBoxMove = new System.Windows.Forms.ComboBox();
+ this.LabelMoveType = new System.Windows.Forms.Label();
+ this.SaveMultButton = new System.Windows.Forms.Button();
+ this.ButtonAddChar = new System.Windows.Forms.Button();
+ this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
+ this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
+ this.panel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.PictureBoxBackground)).BeginInit();
+ this.panel2.SuspendLayout();
+ this.panel3.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // LabelData
+ //
+ this.LabelData.AutoSize = true;
+ this.LabelData.Font = new System.Drawing.Font("Arial Black", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+ this.LabelData.Location = new System.Drawing.Point(0, 9);
+ this.LabelData.Name = "LabelData";
+ this.LabelData.Size = new System.Drawing.Size(224, 23);
+ this.LabelData.TabIndex = 0;
+ this.LabelData.Text = "Данные о мултфильме:";
+ this.LabelData.Click += new System.EventHandler(this.label1_Click);
+ //
+ // LabelLengh
+ //
+ this.LabelLengh.AutoSize = true;
+ this.LabelLengh.Location = new System.Drawing.Point(14, 60);
+ this.LabelLengh.Name = "LabelLengh";
+ this.LabelLengh.Size = new System.Drawing.Size(136, 13);
+ this.LabelLengh.TabIndex = 1;
+ this.LabelLengh.Text = "Длительность: 35 секунд";
+ //
+ // LabelName
+ //
+ this.LabelName.AutoSize = true;
+ this.LabelName.Location = new System.Drawing.Point(14, 86);
+ this.LabelName.Name = "LabelName";
+ this.LabelName.Size = new System.Drawing.Size(60, 13);
+ this.LabelName.TabIndex = 2;
+ this.LabelName.Text = "Название:";
+ this.LabelName.Click += new System.EventHandler(this.label3_Click);
+ //
+ // nazvanieTextBox
+ //
+ this.nazvanieTextBox.Location = new System.Drawing.Point(80, 86);
+ this.nazvanieTextBox.Name = "nazvanieTextBox";
+ this.nazvanieTextBox.Size = new System.Drawing.Size(138, 20);
+ this.nazvanieTextBox.TabIndex = 3;
+ //
+ // panel1
+ //
+ this.panel1.Controls.Add(this.PictureBoxBackground);
+ this.panel1.Controls.Add(this.LabelBackground);
+ this.panel1.Controls.Add(this.dobavitFonButton);
+ this.panel1.Controls.Add(this.LabelData);
+ this.panel1.Controls.Add(this.nazvanieTextBox);
+ this.panel1.Controls.Add(this.LabelLengh);
+ this.panel1.Controls.Add(this.LabelName);
+ 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.TabIndex = 4;
+ //
+ // PictureBoxBackground
+ //
+ this.PictureBoxBackground.Location = new System.Drawing.Point(17, 160);
+ this.PictureBoxBackground.Name = "PictureBoxBackground";
+ this.PictureBoxBackground.Size = new System.Drawing.Size(100, 50);
+ this.PictureBoxBackground.TabIndex = 12;
+ this.PictureBoxBackground.TabStop = false;
+ //
+ // LabelBackground
+ //
+ this.LabelBackground.AutoSize = true;
+ this.LabelBackground.Location = new System.Drawing.Point(14, 114);
+ this.LabelBackground.Name = "LabelBackground";
+ this.LabelBackground.Size = new System.Drawing.Size(77, 13);
+ this.LabelBackground.TabIndex = 11;
+ this.LabelBackground.Text = "Выбрать фон:";
+ //
+ // dobavitFonButton
+ //
+ this.dobavitFonButton.Location = new System.Drawing.Point(17, 130);
+ this.dobavitFonButton.Name = "dobavitFonButton";
+ this.dobavitFonButton.Size = new System.Drawing.Size(116, 24);
+ this.dobavitFonButton.TabIndex = 10;
+ this.dobavitFonButton.Text = "Добавить";
+ this.dobavitFonButton.UseVisualStyleBackColor = true;
+ this.dobavitFonButton.Click += new System.EventHandler(this.button6_Click);
+ //
+ // splitter1
+ //
+ this.splitter1.Location = new System.Drawing.Point(227, 0);
+ this.splitter1.Name = "splitter1";
+ this.splitter1.Size = new System.Drawing.Size(3, 296);
+ this.splitter1.TabIndex = 5;
+ this.splitter1.TabStop = false;
+ //
+ // panel2
+ //
+ this.panel2.Controls.Add(this.SaveCharButton);
+ this.panel2.Controls.Add(this.panel3);
+ 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.Name = "panel2";
+ this.panel2.Size = new System.Drawing.Size(408, 296);
+ this.panel2.TabIndex = 6;
+ //
+ // SaveCharButton
+ //
+ this.SaveCharButton.Dock = System.Windows.Forms.DockStyle.Bottom;
+ this.SaveCharButton.Location = new System.Drawing.Point(0, 236);
+ this.SaveCharButton.Name = "SaveCharButton";
+ this.SaveCharButton.Size = new System.Drawing.Size(408, 30);
+ this.SaveCharButton.TabIndex = 3;
+ this.SaveCharButton.Text = "Сохранить персонажа";
+ this.SaveCharButton.UseVisualStyleBackColor = true;
+ this.SaveCharButton.Click += new System.EventHandler(this.saveCharButtonClick);
+ //
+ // panel3
+ //
+ this.panel3.Controls.Add(this.SpriteNumberLabel);
+ this.panel3.Controls.Add(this.SpriteNumberTextBox);
+ this.panel3.Controls.Add(this.OpenButton);
+ this.panel3.Controls.Add(this.AddPictureButton);
+ this.panel3.Controls.Add(this.LabelPic);
+ this.panel3.Controls.Add(this.LabelTime);
+ this.panel3.Controls.Add(this.LabelDef2);
+ this.panel3.Controls.Add(this.LabelDef1);
+ this.panel3.Controls.Add(this.LabelWalls);
+ this.panel3.Controls.Add(this.TextBoxTime1);
+ this.panel3.Controls.Add(this.TextBoxTime2);
+ this.panel3.Controls.Add(this.TextBoxWall2);
+ this.panel3.Controls.Add(this.TextBoxWall1);
+ this.panel3.Controls.Add(this.ComboBoxMove);
+ this.panel3.Controls.Add(this.LabelMoveType);
+ 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.TabIndex = 2;
+ this.panel3.Visible = false;
+ //
+ // SpriteNumberLabel
+ //
+ this.SpriteNumberLabel.AutoSize = true;
+ this.SpriteNumberLabel.Location = new System.Drawing.Point(7, 153);
+ this.SpriteNumberLabel.Name = "SpriteNumberLabel";
+ this.SpriteNumberLabel.Size = new System.Drawing.Size(119, 13);
+ this.SpriteNumberLabel.TabIndex = 16;
+ this.SpriteNumberLabel.Text = "Количество спрайтов:";
+ this.SpriteNumberLabel.Click += new System.EventHandler(this.label13_Click_1);
+ //
+ // SpriteNumberTextBox
+ //
+ this.SpriteNumberTextBox.Location = new System.Drawing.Point(10, 169);
+ this.SpriteNumberTextBox.Name = "SpriteNumberTextBox";
+ this.SpriteNumberTextBox.Size = new System.Drawing.Size(83, 20);
+ this.SpriteNumberTextBox.TabIndex = 15;
+ //
+ // OpenButton
+ //
+ this.OpenButton.Location = new System.Drawing.Point(221, 160);
+ this.OpenButton.Name = "OpenButton";
+ this.OpenButton.Size = new System.Drawing.Size(171, 30);
+ this.OpenButton.TabIndex = 14;
+ this.OpenButton.Text = "Открыть персонажа";
+ this.OpenButton.UseVisualStyleBackColor = true;
+ this.OpenButton.Click += new System.EventHandler(this.button5_Click);
+ //
+ // AddPictureButton
+ //
+ this.AddPictureButton.Location = new System.Drawing.Point(132, 169);
+ this.AddPictureButton.Name = "AddPictureButton";
+ this.AddPictureButton.Size = new System.Drawing.Size(65, 20);
+ this.AddPictureButton.TabIndex = 13;
+ this.AddPictureButton.Text = "Добавить";
+ this.AddPictureButton.UseVisualStyleBackColor = true;
+ this.AddPictureButton.Click += new System.EventHandler(this.button4_Click);
+ //
+ // LabelPic
+ //
+ this.LabelPic.AutoSize = true;
+ this.LabelPic.Location = new System.Drawing.Point(129, 153);
+ this.LabelPic.Name = "LabelPic";
+ this.LabelPic.Size = new System.Drawing.Size(58, 13);
+ this.LabelPic.TabIndex = 12;
+ this.LabelPic.Text = "Картинка:";
+ //
+ // LabelTime
+ //
+ this.LabelTime.AutoSize = true;
+ this.LabelTime.Location = new System.Drawing.Point(19, 91);
+ this.LabelTime.Name = "LabelTime";
+ this.LabelTime.Size = new System.Drawing.Size(54, 13);
+ this.LabelTime.TabIndex = 11;
+ this.LabelTime.Text = "Тайминг:";
+ //
+ // LabelDef2
+ //
+ this.LabelDef2.AutoSize = true;
+ this.LabelDef2.Location = new System.Drawing.Point(240, 91);
+ this.LabelDef2.Name = "LabelDef2";
+ this.LabelDef2.Size = new System.Drawing.Size(13, 13);
+ this.LabelDef2.TabIndex = 10;
+ this.LabelDef2.Text = "--";
+ this.LabelDef2.Click += new System.EventHandler(this.label10_Click);
+ //
+ // LabelDef1
+ //
+ this.LabelDef1.AutoSize = true;
+ this.LabelDef1.Location = new System.Drawing.Point(240, 62);
+ this.LabelDef1.Name = "LabelDef1";
+ this.LabelDef1.Size = new System.Drawing.Size(13, 13);
+ this.LabelDef1.TabIndex = 9;
+ this.LabelDef1.Text = "--";
+ this.LabelDef1.Click += new System.EventHandler(this.label9_Click);
+ //
+ // LabelWalls
+ //
+ this.LabelWalls.AutoSize = true;
+ this.LabelWalls.Location = new System.Drawing.Point(19, 62);
+ this.LabelWalls.Name = "LabelWalls";
+ this.LabelWalls.Size = new System.Drawing.Size(107, 13);
+ this.LabelWalls.TabIndex = 8;
+ this.LabelWalls.Text = "Границы движения:";
+ this.LabelWalls.Click += new System.EventHandler(this.label8_Click);
+ //
+ // TextBoxTime1
+ //
+ this.TextBoxTime1.Location = new System.Drawing.Point(132, 88);
+ this.TextBoxTime1.Name = "TextBoxTime1";
+ this.TextBoxTime1.Size = new System.Drawing.Size(100, 20);
+ this.TextBoxTime1.TabIndex = 5;
+ //
+ // TextBoxTime2
+ //
+ this.TextBoxTime2.Location = new System.Drawing.Point(259, 88);
+ this.TextBoxTime2.Name = "TextBoxTime2";
+ this.TextBoxTime2.Size = new System.Drawing.Size(100, 20);
+ this.TextBoxTime2.TabIndex = 4;
+ this.TextBoxTime2.TextChanged += new System.EventHandler(this.textBox6_TextChanged);
+ //
+ // TextBoxWall2
+ //
+ this.TextBoxWall2.Location = new System.Drawing.Point(259, 59);
+ this.TextBoxWall2.Name = "TextBoxWall2";
+ this.TextBoxWall2.Size = new System.Drawing.Size(100, 20);
+ this.TextBoxWall2.TabIndex = 3;
+ //
+ // TextBoxWall1
+ //
+ this.TextBoxWall1.Location = new System.Drawing.Point(132, 59);
+ this.TextBoxWall1.Name = "TextBoxWall1";
+ this.TextBoxWall1.Size = new System.Drawing.Size(100, 20);
+ this.TextBoxWall1.TabIndex = 2;
+ //
+ // ComboBoxMove
+ //
+ this.ComboBoxMove.FormattingEnabled = true;
+ this.ComboBoxMove.Items.AddRange(new object[] {
+ "Прямо",
+ "По диагонали",
+ "Волнами",
+ "Кругами"});
+ this.ComboBoxMove.Location = new System.Drawing.Point(107, 12);
+ this.ComboBoxMove.Name = "ComboBoxMove";
+ this.ComboBoxMove.Size = new System.Drawing.Size(121, 21);
+ this.ComboBoxMove.TabIndex = 1;
+ this.ComboBoxMove.Text = "Прямо";
+ //
+ // LabelMoveType
+ //
+ this.LabelMoveType.AutoSize = true;
+ this.LabelMoveType.Location = new System.Drawing.Point(19, 12);
+ this.LabelMoveType.Name = "LabelMoveType";
+ this.LabelMoveType.Size = new System.Drawing.Size(82, 13);
+ this.LabelMoveType.TabIndex = 0;
+ this.LabelMoveType.Text = "Вид движения:";
+ //
+ // SaveMultButton
+ //
+ this.SaveMultButton.Dock = System.Windows.Forms.DockStyle.Bottom;
+ this.SaveMultButton.Location = new System.Drawing.Point(0, 266);
+ this.SaveMultButton.Name = "SaveMultButton";
+ this.SaveMultButton.Size = new System.Drawing.Size(408, 30);
+ this.SaveMultButton.TabIndex = 1;
+ this.SaveMultButton.Text = "Сохранить мульт";
+ this.SaveMultButton.UseVisualStyleBackColor = true;
+ //
+ // ButtonAddChar
+ //
+ 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.TabIndex = 0;
+ this.ButtonAddChar.Text = "Добавить персонажа";
+ this.ButtonAddChar.UseVisualStyleBackColor = true;
+ this.ButtonAddChar.Click += new System.EventHandler(this.button1_Click);
+ //
+ // openFileDialog1
+ //
+ this.openFileDialog1.FileName = "openFileDialog1";
+ //
+ // 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.Controls.Add(this.panel2);
+ this.Controls.Add(this.splitter1);
+ this.Controls.Add(this.panel1);
+ this.Name = "MainForm";
+ this.RightToLeftLayout = true;
+ this.Text = "Свойства персонажа";
+ this.Load += new System.EventHandler(this.Form1_Load);
+ this.panel1.ResumeLayout(false);
+ this.panel1.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.PictureBoxBackground)).EndInit();
+ this.panel2.ResumeLayout(false);
+ this.panel3.ResumeLayout(false);
+ this.panel3.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label LabelData;
+ private System.Windows.Forms.Label LabelLengh;
+ private System.Windows.Forms.Label LabelName;
+ private System.Windows.Forms.TextBox nazvanieTextBox;
+ private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Splitter splitter1;
+ private System.Windows.Forms.Panel panel2;
+ private System.Windows.Forms.Button SaveMultButton;
+ private System.Windows.Forms.Button ButtonAddChar;
+ private System.Windows.Forms.Panel panel3;
+ private System.Windows.Forms.Label LabelMoveType;
+ private System.Windows.Forms.TextBox TextBoxTime1;
+ private System.Windows.Forms.TextBox TextBoxTime2;
+ private System.Windows.Forms.TextBox TextBoxWall2;
+ private System.Windows.Forms.TextBox TextBoxWall1;
+ private System.Windows.Forms.ComboBox ComboBoxMove;
+ private System.Windows.Forms.Label LabelDef1;
+ private System.Windows.Forms.Label LabelWalls;
+ private System.Windows.Forms.Label LabelTime;
+ private System.Windows.Forms.Label LabelDef2;
+ private System.Windows.Forms.Button SaveCharButton;
+ private System.Windows.Forms.Button AddPictureButton;
+ private System.Windows.Forms.Label LabelPic;
+ private System.Windows.Forms.SaveFileDialog saveFileDialog1;
+ private System.Windows.Forms.Button OpenButton;
+ private System.Windows.Forms.OpenFileDialog openFileDialog1;
+ private System.Windows.Forms.Label SpriteNumberLabel;
+ private System.Windows.Forms.TextBox SpriteNumberTextBox;
+ private System.Windows.Forms.Label LabelBackground;
+ private System.Windows.Forms.Button dobavitFonButton;
+ private System.Windows.Forms.PictureBox PictureBoxBackground;
+ }
+}
+
diff --git a/WindowsFormsApplication1/WindowsFormsApplication1/MainForm.cs b/WindowsFormsApplication1/WindowsFormsApplication1/MainForm.cs
new file mode 100644
index 0000000..af23e5e
--- /dev/null
+++ b/WindowsFormsApplication1/WindowsFormsApplication1/MainForm.cs
@@ -0,0 +1,173 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+
+namespace WindowsFormsApplication1
+{
+ public struct Personazh
+ {
+ public string ce_nibud;
+ public string nazvanie_personazha;
+ }
+
+ public partial class MainForm : Form
+ {
+
+ PictureBox[] pic1 = new PictureBox[1000];
+
+ public MainForm()
+ {
+ InitializeComponent();
+
+ ButtonAddChar.Click += button1_Click;
+ SaveCharButton.Click += saveCharButtonClick;
+ openFileDialog1.Filter = "Text files(*OpenFileDialog.txt)|*.txt|All files(*.*)|*.*";
+ saveFileDialog1.Filter = "Text files(*SaveFileDialog.txt)|*.txt|All files(*.*)|*.*";
+ }
+
+ private void Form1_Load(object sender, EventArgs e)
+ {
+ /*int i=0;
+
+ for (; i < 10; i++)
+ {
+ PictureBox pic2 = new PictureBox();
+ pic2.Location = new Point(pic2.Location.X + (i*100), pic2.Location.Y);
+ pic2.BorderStyle = BorderStyle.FixedSingle;
+ pic1[i] = pic2;
+ Controls.Add(pic1[i]);
+ }*/
+ }
+
+ private void label1_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void label3_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void textBox3_TextChanged(object sender, EventArgs e)
+ {
+
+ }
+
+ private void button1_Click(object sender, EventArgs e)
+ {
+ panel3.Visible = true;
+ }
+
+ private void label9_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void label10_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void button4_Click(object sender, EventArgs e)
+ {
+ //Список всех файлов папки
+ //Создаешь из них массив (или список)
+ //Выбираешь рандомный номер
+
+ //pictureBox1.Image = Image.FromFile("kartinka.jpg");
+ }
+
+ private void pictureBox1_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void file_beginning(string filename)
+ {
+ System.IO.File.WriteAllText(filename, "");
+ System.IO.File.AppendAllText(filename, "#include \"TXLib.h\"" + Environment.NewLine);
+ System.IO.File.AppendAllText(filename, Environment.NewLine);
+ System.IO.File.AppendAllText(filename, "int main()" + Environment.NewLine);
+ System.IO.File.AppendAllText(filename, "{" + Environment.NewLine);
+ }
+
+ private void file_forser(string filename)
+ {
+ System.IO.File.AppendAllText(filename, Environment.NewLine);
+ System.IO.File.AppendAllText(filename, "txSetColor(TX_WHITE);" + Environment.NewLine);
+ System.IO.File.AppendAllText(filename, "txSetFillColor(TX_WHITE);" + Environment.NewLine);
+ System.IO.File.AppendAllText(filename, "txRectangle(0, 0, 800, 600);" + Environment.NewLine);
+ System.IO.File.AppendAllText(filename, "HDC texture = txLoadImage(\"Pictures\\Personaj.bmp\");" + Environment.NewLine);
+ }
+
+ private void file_ending(string filename)
+ {
+ System.IO.File.AppendAllText(filename, "return " + SpriteNumberTextBox.Text + "0;" + Environment.NewLine);
+
+ System.IO.File.AppendAllText(filename, "}" + Environment.NewLine);
+ }
+
+ private void saveCharButtonClick(object sender, EventArgs e)
+ {
+ if (saveFileDialog1.ShowDialog() == DialogResult.Cancel)
+ return;
+ string filename = saveFileDialog1.FileName;
+ file_beginning(filename);
+ file_forser(filename);
+ file_ending(filename);
+
+ MessageBox.Show("Файл сохранен");
+ }
+
+
+
+
+ private void button5_Click(object sender, EventArgs e)
+ {
+ if (openFileDialog1.ShowDialog() == DialogResult.Cancel)
+ return;
+ string filename = openFileDialog1.FileName;
+ string fileText = System.IO.File.ReadAllText(filename);
+ nazvanieTextBox.Text = fileText;
+ MessageBox.Show("Файл открыт");
+ }
+
+ private void textBox6_TextChanged(object sender, EventArgs e)
+ {
+
+ }
+
+ private void label8_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void label13_Click(object sender, EventArgs e)
+ {
+
+ }
+
+ private void label13_Click_1(object sender, EventArgs e)
+ {
+
+ }
+
+ private void button6_Click(object sender, EventArgs e)
+ {
+ if (openFileDialog1.ShowDialog() == DialogResult.Cancel)
+ return;
+ string filename = openFileDialog1.FileName;
+ string fileText = System.IO.File.ReadAllText(filename);
+ nazvanieTextBox.Text = fileText;
+ //MessageBox.Show("Файл открыт");
+ PictureBoxBackground.Image = Image.FromFile("kartinka.jpg");
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/WindowsFormsApplication1/WindowsFormsApplication1/MainForm.resx b/WindowsFormsApplication1/WindowsFormsApplication1/MainForm.resx
new file mode 100644
index 0000000..d2d8b5c
--- /dev/null
+++ b/WindowsFormsApplication1/WindowsFormsApplication1/MainForm.resx
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ 17, 17
+
+
+ 153, 17
+
+
+ 39
+
+
\ No newline at end of file
diff --git a/WindowsFormsApplication1/WindowsFormsApplication1/WindowsFormsApplication1.csproj b/WindowsFormsApplication1/WindowsFormsApplication1/WindowsFormsApplication1.csproj
index d1c63fe..39270e7 100644
--- a/WindowsFormsApplication1/WindowsFormsApplication1/WindowsFormsApplication1.csproj
+++ b/WindowsFormsApplication1/WindowsFormsApplication1/WindowsFormsApplication1.csproj
@@ -44,16 +44,16 @@
-
+
Form
-
- Form1.cs
+
+ MainForm.cs
-
- Form1.cs
+
+ MainForm.cs
ResXFileCodeGenerator