Merge pull request #5 from IngenerkaTeamCenter/ArkLightning-patch-1
Массовые переименования
This commit is contained in:
commit
1c971dcc95
4 changed files with 728 additions and 5 deletions
421
WindowsFormsApplication1/WindowsFormsApplication1/MainForm.Designer.cs
generated
Normal file
421
WindowsFormsApplication1/WindowsFormsApplication1/MainForm.Designer.cs
generated
Normal file
|
@ -0,0 +1,421 @@
|
|||
namespace WindowsFormsApplication1
|
||||
{
|
||||
partial class MainForm
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
173
WindowsFormsApplication1/WindowsFormsApplication1/MainForm.cs
Normal file
173
WindowsFormsApplication1/WindowsFormsApplication1/MainForm.cs
Normal file
|
@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
129
WindowsFormsApplication1/WindowsFormsApplication1/MainForm.resx
Normal file
129
WindowsFormsApplication1/WindowsFormsApplication1/MainForm.resx
Normal file
|
@ -0,0 +1,129 @@
|
|||
<?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>
|
||||
<metadata name="saveFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="openFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>153, 17</value>
|
||||
</metadata>
|
||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>39</value>
|
||||
</metadata>
|
||||
</root>
|
|
@ -44,16 +44,16 @@
|
|||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Form1.cs">
|
||||
<Compile Include="MainForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form1.Designer.cs">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
<Compile Include="MainForm.Designer.cs">
|
||||
<DependentUpon>MainForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="Form1.resx">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
<EmbeddedResource Include="MainForm.resx">
|
||||
<DependentUpon>MainForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
|
|
Loading…
Add table
Reference in a new issue