Исправление тупых названий

This commit is contained in:
Voltronormu 2018-04-24 15:50:25 +03:00 committed by GitHub
parent 70c4e59623
commit 1f99f20d98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 158 additions and 192 deletions

View file

@ -32,16 +32,16 @@ namespace WindowsFormsApplication1
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.label1 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.leftPanel = new System.Windows.Forms.Panel();
this.Char_Stats = new System.Windows.Forms.Label();
this.Char_Info = new System.Windows.Forms.Label();
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.rightPanel = new System.Windows.Forms.Panel();
this.SaveCharButton = new System.Windows.Forms.Button();
this.panel3 = new System.Windows.Forms.Panel();
this.personPanel = new System.Windows.Forms.Panel();
this.charNameBox = new System.Windows.Forms.TextBox();
this.charNameLabel = new System.Windows.Forms.Label();
this.openSpace = new System.Windows.Forms.PictureBox();
@ -63,10 +63,10 @@ namespace WindowsFormsApplication1
this.ButtonAddChar = new System.Windows.Forms.Button();
this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.panel1.SuspendLayout();
this.leftPanel.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.PictureBoxBackground)).BeginInit();
this.panel2.SuspendLayout();
this.panel3.SuspendLayout();
this.rightPanel.SuspendLayout();
this.personPanel.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.openSpace)).BeginInit();
this.SuspendLayout();
//
@ -74,86 +74,78 @@ namespace WindowsFormsApplication1
//
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, 11);
this.LabelData.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.LabelData.Location = new System.Drawing.Point(0, 9);
this.LabelData.Name = "LabelData";
this.LabelData.Size = new System.Drawing.Size(278, 28);
this.LabelData.Size = new System.Drawing.Size(224, 23);
this.LabelData.TabIndex = 0;
this.LabelData.Text = "Данные о мултфильме:";
//
// LabelLengh
//
this.LabelLengh.AutoSize = true;
this.LabelLengh.Location = new System.Drawing.Point(19, 74);
this.LabelLengh.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.LabelLengh.Location = new System.Drawing.Point(14, 60);
this.LabelLengh.Name = "LabelLengh";
this.LabelLengh.Size = new System.Drawing.Size(175, 17);
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(19, 106);
this.LabelName.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.LabelName.Location = new System.Drawing.Point(14, 86);
this.LabelName.Name = "LabelName";
this.LabelName.Size = new System.Drawing.Size(76, 17);
this.LabelName.Size = new System.Drawing.Size(60, 13);
this.LabelName.TabIndex = 2;
this.LabelName.Text = "Название:";
//
// nazvanieTextBox
//
this.nazvanieTextBox.Location = new System.Drawing.Point(107, 106);
this.nazvanieTextBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.nazvanieTextBox.Location = new System.Drawing.Point(80, 86);
this.nazvanieTextBox.Name = "nazvanieTextBox";
this.nazvanieTextBox.Size = new System.Drawing.Size(183, 22);
this.nazvanieTextBox.Size = new System.Drawing.Size(138, 20);
this.nazvanieTextBox.TabIndex = 3;
//
// panel1
// leftPanel
//
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.label13);
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.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(396, 468);
this.panel1.TabIndex = 4;
this.leftPanel.Controls.Add(this.Char_Stats);
this.leftPanel.Controls.Add(this.Char_Info);
this.leftPanel.Controls.Add(this.PictureBoxBackground);
this.leftPanel.Controls.Add(this.LabelBackground);
this.leftPanel.Controls.Add(this.dobavitFonButton);
this.leftPanel.Controls.Add(this.LabelData);
this.leftPanel.Controls.Add(this.nazvanieTextBox);
this.leftPanel.Controls.Add(this.LabelLengh);
this.leftPanel.Controls.Add(this.LabelName);
this.leftPanel.Dock = System.Windows.Forms.DockStyle.Left;
this.leftPanel.Location = new System.Drawing.Point(0, 0);
this.leftPanel.Name = "leftPanel";
this.leftPanel.Size = new System.Drawing.Size(297, 380);
this.leftPanel.TabIndex = 4;
//
// label1
// Char_Stats
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(19, 337);
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(344, 17);
this.label1.TabIndex = 24;
this.label1.Text = "number name state view delete";
this.Char_Stats.AutoSize = true;
this.Char_Stats.Location = new System.Drawing.Point(14, 274);
this.Char_Stats.Name = "Char_Stats";
this.Char_Stats.Size = new System.Drawing.Size(259, 13);
this.Char_Stats.TabIndex = 24;
this.Char_Stats.Text = "number name state view delete";
//
// label13
// Char_Info
//
this.label13.AutoSize = true;
this.label13.Location = new System.Drawing.Point(59, 286);
this.label13.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(229, 17);
this.label13.TabIndex = 23;
this.label13.Text = "ИНФОРМАЦИЯ О ПЕРСОНАЖАХ";
this.label13.Click += new System.EventHandler(this.label13_Click);
this.Char_Info.AutoSize = true;
this.Char_Info.Location = new System.Drawing.Point(44, 232);
this.Char_Info.Name = "Char_Info";
this.Char_Info.Size = new System.Drawing.Size(180, 13);
this.Char_Info.TabIndex = 23;
this.Char_Info.Text = "ИНФОРМАЦИЯ О ПЕРСОНАЖАХ";
this.Char_Info.Click += new System.EventHandler(this.Char_Info_Click);
//
// PictureBoxBackground
//
this.PictureBoxBackground.Location = new System.Drawing.Point(21, 194);
this.PictureBoxBackground.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.PictureBoxBackground.Location = new System.Drawing.Point(16, 158);
this.PictureBoxBackground.Name = "PictureBoxBackground";
this.PictureBoxBackground.Size = new System.Drawing.Size(156, 89);
this.PictureBoxBackground.Size = new System.Drawing.Size(117, 72);
this.PictureBoxBackground.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.PictureBoxBackground.TabIndex = 12;
this.PictureBoxBackground.TabStop = false;
@ -161,19 +153,17 @@ namespace WindowsFormsApplication1
// LabelBackground
//
this.LabelBackground.AutoSize = true;
this.LabelBackground.Location = new System.Drawing.Point(19, 140);
this.LabelBackground.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.LabelBackground.Location = new System.Drawing.Point(14, 114);
this.LabelBackground.Name = "LabelBackground";
this.LabelBackground.Size = new System.Drawing.Size(100, 17);
this.LabelBackground.Size = new System.Drawing.Size(77, 13);
this.LabelBackground.TabIndex = 11;
this.LabelBackground.Text = "Выбрать фон:";
//
// dobavitFonButton
//
this.dobavitFonButton.Location = new System.Drawing.Point(23, 160);
this.dobavitFonButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.dobavitFonButton.Location = new System.Drawing.Point(17, 130);
this.dobavitFonButton.Name = "dobavitFonButton";
this.dobavitFonButton.Size = new System.Drawing.Size(155, 30);
this.dobavitFonButton.Size = new System.Drawing.Size(116, 24);
this.dobavitFonButton.TabIndex = 10;
this.dobavitFonButton.Text = "Добавить";
this.dobavitFonButton.UseVisualStyleBackColor = true;
@ -181,89 +171,82 @@ namespace WindowsFormsApplication1
//
// splitter1
//
this.splitter1.Location = new System.Drawing.Point(396, 0);
this.splitter1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.splitter1.Location = new System.Drawing.Point(297, 0);
this.splitter1.Name = "splitter1";
this.splitter1.Size = new System.Drawing.Size(4, 468);
this.splitter1.Size = new System.Drawing.Size(3, 380);
this.splitter1.TabIndex = 5;
this.splitter1.TabStop = false;
//
// panel2
// rightPanel
//
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(400, 0);
this.panel2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(503, 468);
this.panel2.TabIndex = 6;
this.rightPanel.Controls.Add(this.SaveCharButton);
this.rightPanel.Controls.Add(this.personPanel);
this.rightPanel.Controls.Add(this.SaveMultButton);
this.rightPanel.Controls.Add(this.ButtonAddChar);
this.rightPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.rightPanel.Location = new System.Drawing.Point(300, 0);
this.rightPanel.Name = "rightPanel";
this.rightPanel.Size = new System.Drawing.Size(377, 380);
this.rightPanel.TabIndex = 6;
//
// SaveCharButton
//
this.SaveCharButton.Dock = System.Windows.Forms.DockStyle.Bottom;
this.SaveCharButton.Location = new System.Drawing.Point(0, 394);
this.SaveCharButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.SaveCharButton.Location = new System.Drawing.Point(0, 320);
this.SaveCharButton.Name = "SaveCharButton";
this.SaveCharButton.Size = new System.Drawing.Size(503, 37);
this.SaveCharButton.Size = new System.Drawing.Size(377, 30);
this.SaveCharButton.TabIndex = 3;
this.SaveCharButton.Text = "Сохранить персонажа";
this.SaveCharButton.UseVisualStyleBackColor = true;
this.SaveCharButton.Click += new System.EventHandler(this.SaveCharButtonClick);
//
// panel3
// personPanel
//
this.panel3.Controls.Add(this.charNameBox);
this.panel3.Controls.Add(this.charNameLabel);
this.panel3.Controls.Add(this.openSpace);
this.panel3.Controls.Add(this.SpriteNumberLabel);
this.panel3.Controls.Add(this.SpriteNumberTextBox);
this.panel3.Controls.Add(this.OpenButton);
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, 32);
this.panel3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(503, 399);
this.panel3.TabIndex = 2;
this.panel3.Visible = false;
this.personPanel.Controls.Add(this.charNameBox);
this.personPanel.Controls.Add(this.charNameLabel);
this.personPanel.Controls.Add(this.openSpace);
this.personPanel.Controls.Add(this.SpriteNumberLabel);
this.personPanel.Controls.Add(this.SpriteNumberTextBox);
this.personPanel.Controls.Add(this.OpenButton);
this.personPanel.Controls.Add(this.LabelPic);
this.personPanel.Controls.Add(this.LabelTime);
this.personPanel.Controls.Add(this.LabelDef2);
this.personPanel.Controls.Add(this.LabelDef1);
this.personPanel.Controls.Add(this.LabelWalls);
this.personPanel.Controls.Add(this.TextBoxTime1);
this.personPanel.Controls.Add(this.TextBoxTime2);
this.personPanel.Controls.Add(this.TextBoxWall2);
this.personPanel.Controls.Add(this.TextBoxWall1);
this.personPanel.Controls.Add(this.ComboBoxMove);
this.personPanel.Controls.Add(this.LabelMoveType);
this.personPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.personPanel.Location = new System.Drawing.Point(0, 26);
this.personPanel.Name = "personPanel";
this.personPanel.Size = new System.Drawing.Size(377, 324);
this.personPanel.TabIndex = 2;
this.personPanel.Visible = false;
//
// charNameBox
//
this.charNameBox.Location = new System.Drawing.Point(113, 142);
this.charNameBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.charNameBox.Location = new System.Drawing.Point(85, 115);
this.charNameBox.Name = "charNameBox";
this.charNameBox.Size = new System.Drawing.Size(183, 22);
this.charNameBox.Size = new System.Drawing.Size(138, 20);
this.charNameBox.TabIndex = 19;
//
// charNameLabel
//
this.charNameLabel.AutoSize = true;
this.charNameLabel.Location = new System.Drawing.Point(25, 142);
this.charNameLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.charNameLabel.Location = new System.Drawing.Point(19, 115);
this.charNameLabel.Name = "charNameLabel";
this.charNameLabel.Size = new System.Drawing.Size(76, 17);
this.charNameLabel.Size = new System.Drawing.Size(60, 13);
this.charNameLabel.TabIndex = 18;
this.charNameLabel.Text = "Название:";
//
// openSpace
//
this.openSpace.Location = new System.Drawing.Point(251, 233);
this.openSpace.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.openSpace.Location = new System.Drawing.Point(188, 189);
this.openSpace.Name = "openSpace";
this.openSpace.Size = new System.Drawing.Size(248, 89);
this.openSpace.Size = new System.Drawing.Size(186, 72);
this.openSpace.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.openSpace.TabIndex = 17;
this.openSpace.TabStop = false;
@ -271,27 +254,24 @@ namespace WindowsFormsApplication1
// SpriteNumberLabel
//
this.SpriteNumberLabel.AutoSize = true;
this.SpriteNumberLabel.Location = new System.Drawing.Point(9, 188);
this.SpriteNumberLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.SpriteNumberLabel.Location = new System.Drawing.Point(7, 153);
this.SpriteNumberLabel.Name = "SpriteNumberLabel";
this.SpriteNumberLabel.Size = new System.Drawing.Size(155, 17);
this.SpriteNumberLabel.Size = new System.Drawing.Size(119, 13);
this.SpriteNumberLabel.TabIndex = 16;
this.SpriteNumberLabel.Text = "Количество спрайтов:";
//
// SpriteNumberTextBox
//
this.SpriteNumberTextBox.Location = new System.Drawing.Point(13, 208);
this.SpriteNumberTextBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.SpriteNumberTextBox.Location = new System.Drawing.Point(10, 169);
this.SpriteNumberTextBox.Name = "SpriteNumberTextBox";
this.SpriteNumberTextBox.Size = new System.Drawing.Size(109, 22);
this.SpriteNumberTextBox.Size = new System.Drawing.Size(83, 20);
this.SpriteNumberTextBox.TabIndex = 15;
//
// OpenButton
//
this.OpenButton.Location = new System.Drawing.Point(251, 188);
this.OpenButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.OpenButton.Location = new System.Drawing.Point(188, 153);
this.OpenButton.Name = "OpenButton";
this.OpenButton.Size = new System.Drawing.Size(256, 37);
this.OpenButton.Size = new System.Drawing.Size(192, 30);
this.OpenButton.TabIndex = 14;
this.OpenButton.Text = "Открыть персонажа";
this.OpenButton.UseVisualStyleBackColor = true;
@ -300,84 +280,75 @@ namespace WindowsFormsApplication1
// LabelPic
//
this.LabelPic.AutoSize = true;
this.LabelPic.Location = new System.Drawing.Point(172, 188);
this.LabelPic.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.LabelPic.Location = new System.Drawing.Point(129, 153);
this.LabelPic.Name = "LabelPic";
this.LabelPic.Size = new System.Drawing.Size(75, 17);
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(25, 112);
this.LabelTime.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.LabelTime.Location = new System.Drawing.Point(19, 91);
this.LabelTime.Name = "LabelTime";
this.LabelTime.Size = new System.Drawing.Size(67, 17);
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(320, 112);
this.LabelDef2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.LabelDef2.Location = new System.Drawing.Point(240, 91);
this.LabelDef2.Name = "LabelDef2";
this.LabelDef2.Size = new System.Drawing.Size(18, 17);
this.LabelDef2.Size = new System.Drawing.Size(13, 13);
this.LabelDef2.TabIndex = 10;
this.LabelDef2.Text = "--";
//
// LabelDef1
//
this.LabelDef1.AutoSize = true;
this.LabelDef1.Location = new System.Drawing.Point(320, 76);
this.LabelDef1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.LabelDef1.Location = new System.Drawing.Point(240, 62);
this.LabelDef1.Name = "LabelDef1";
this.LabelDef1.Size = new System.Drawing.Size(18, 17);
this.LabelDef1.Size = new System.Drawing.Size(13, 13);
this.LabelDef1.TabIndex = 9;
this.LabelDef1.Text = "--";
//
// LabelWalls
//
this.LabelWalls.AutoSize = true;
this.LabelWalls.Location = new System.Drawing.Point(25, 76);
this.LabelWalls.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.LabelWalls.Location = new System.Drawing.Point(19, 62);
this.LabelWalls.Name = "LabelWalls";
this.LabelWalls.Size = new System.Drawing.Size(138, 17);
this.LabelWalls.Size = new System.Drawing.Size(107, 13);
this.LabelWalls.TabIndex = 8;
this.LabelWalls.Text = "Границы движения:";
//
// TextBoxTime1
//
this.TextBoxTime1.Location = new System.Drawing.Point(176, 108);
this.TextBoxTime1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.TextBoxTime1.Location = new System.Drawing.Point(132, 88);
this.TextBoxTime1.Name = "TextBoxTime1";
this.TextBoxTime1.Size = new System.Drawing.Size(132, 22);
this.TextBoxTime1.Size = new System.Drawing.Size(100, 20);
this.TextBoxTime1.TabIndex = 5;
//
// TextBoxTime2
//
this.TextBoxTime2.Location = new System.Drawing.Point(345, 108);
this.TextBoxTime2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.TextBoxTime2.Location = new System.Drawing.Point(259, 88);
this.TextBoxTime2.Name = "TextBoxTime2";
this.TextBoxTime2.Size = new System.Drawing.Size(132, 22);
this.TextBoxTime2.Size = new System.Drawing.Size(100, 20);
this.TextBoxTime2.TabIndex = 4;
//
// TextBoxWall2
//
this.TextBoxWall2.Location = new System.Drawing.Point(345, 73);
this.TextBoxWall2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.TextBoxWall2.Location = new System.Drawing.Point(259, 59);
this.TextBoxWall2.Name = "TextBoxWall2";
this.TextBoxWall2.Size = new System.Drawing.Size(132, 22);
this.TextBoxWall2.Size = new System.Drawing.Size(100, 20);
this.TextBoxWall2.TabIndex = 3;
this.TextBoxWall2.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.TextBoxWall1_KeyPress);
//
// TextBoxWall1
//
this.TextBoxWall1.Location = new System.Drawing.Point(176, 73);
this.TextBoxWall1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.TextBoxWall1.Location = new System.Drawing.Point(132, 59);
this.TextBoxWall1.Name = "TextBoxWall1";
this.TextBoxWall1.Size = new System.Drawing.Size(132, 22);
this.TextBoxWall1.Size = new System.Drawing.Size(100, 20);
this.TextBoxWall1.TabIndex = 2;
this.TextBoxWall1.TextChanged += new System.EventHandler(this.TextBoxWall1_TextChanged);
this.TextBoxWall1.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.TextBoxWall1_KeyPress);
@ -390,30 +361,27 @@ namespace WindowsFormsApplication1
"Диагонально",
"Волнами",
"Кругами"});
this.ComboBoxMove.Location = new System.Drawing.Point(143, 15);
this.ComboBoxMove.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.ComboBoxMove.Location = new System.Drawing.Point(107, 12);
this.ComboBoxMove.Name = "ComboBoxMove";
this.ComboBoxMove.Size = new System.Drawing.Size(160, 24);
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(25, 15);
this.LabelMoveType.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.LabelMoveType.Location = new System.Drawing.Point(19, 12);
this.LabelMoveType.Name = "LabelMoveType";
this.LabelMoveType.Size = new System.Drawing.Size(105, 17);
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, 431);
this.SaveMultButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.SaveMultButton.Location = new System.Drawing.Point(0, 350);
this.SaveMultButton.Name = "SaveMultButton";
this.SaveMultButton.Size = new System.Drawing.Size(503, 37);
this.SaveMultButton.Size = new System.Drawing.Size(377, 30);
this.SaveMultButton.TabIndex = 1;
this.SaveMultButton.Text = "Сохранить мульт";
this.SaveMultButton.UseVisualStyleBackColor = true;
@ -423,9 +391,8 @@ namespace WindowsFormsApplication1
//
this.ButtonAddChar.Dock = System.Windows.Forms.DockStyle.Top;
this.ButtonAddChar.Location = new System.Drawing.Point(0, 0);
this.ButtonAddChar.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.ButtonAddChar.Name = "ButtonAddChar";
this.ButtonAddChar.Size = new System.Drawing.Size(503, 32);
this.ButtonAddChar.Size = new System.Drawing.Size(377, 26);
this.ButtonAddChar.TabIndex = 0;
this.ButtonAddChar.Text = "Добавить персонажа";
this.ButtonAddChar.UseVisualStyleBackColor = true;
@ -437,23 +404,22 @@ namespace WindowsFormsApplication1
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(903, 468);
this.Controls.Add(this.panel2);
this.ClientSize = new System.Drawing.Size(677, 380);
this.Controls.Add(this.rightPanel);
this.Controls.Add(this.splitter1);
this.Controls.Add(this.panel1);
this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.Controls.Add(this.leftPanel);
this.Name = "MainForm";
this.RightToLeftLayout = true;
this.Text = "Свойства персонажа";
this.Load += new System.EventHandler(this.MainForm_Load);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.leftPanel.ResumeLayout(false);
this.leftPanel.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.PictureBoxBackground)).EndInit();
this.panel2.ResumeLayout(false);
this.panel3.ResumeLayout(false);
this.panel3.PerformLayout();
this.rightPanel.ResumeLayout(false);
this.personPanel.ResumeLayout(false);
this.personPanel.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.openSpace)).EndInit();
this.ResumeLayout(false);
@ -465,12 +431,12 @@ namespace WindowsFormsApplication1
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.Panel leftPanel;
private System.Windows.Forms.Splitter splitter1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Panel rightPanel;
private System.Windows.Forms.Button SaveMultButton;
private System.Windows.Forms.Button ButtonAddChar;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Panel personPanel;
private System.Windows.Forms.Label LabelMoveType;
private System.Windows.Forms.TextBox TextBoxTime1;
private System.Windows.Forms.TextBox TextBoxTime2;
@ -491,9 +457,9 @@ namespace WindowsFormsApplication1
private System.Windows.Forms.Label LabelBackground;
private System.Windows.Forms.Button dobavitFonButton;
private System.Windows.Forms.PictureBox PictureBoxBackground;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.Label Char_Info;
private System.Windows.Forms.PictureBox openSpace;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label Char_Stats;
private System.Windows.Forms.TextBox charNameBox;
private System.Windows.Forms.Label charNameLabel;
}

View file

@ -29,7 +29,7 @@ namespace WindowsFormsApplication1
private void buttonAddCharClick(object sender, EventArgs e)
{
panel3.Visible = true;
personPanel.Visible = true;
pNomer = -120;
}
@ -45,13 +45,13 @@ namespace WindowsFormsApplication1
private void SaveCharButtonClick(object sender, EventArgs e)
{
if (panel3.Visible == false)
if (personPanel.Visible == false)
{
MessageBox.Show("Где параметры? Покажи мне, ткни мне в них!");
return;
}
panel3.Visible = true;
personPanel.Visible = true;
if (pNomer == -120)
{
persons[nomerPersa].l1 = new Label();
@ -60,7 +60,7 @@ namespace WindowsFormsApplication1
persons[nomerPersa].l1.Width = 20;
persons[nomerPersa].l1.Visible = true;
persons[nomerPersa].l1.Text = (nomerPersa + 1).ToString();
this.panel1.Controls.Add(persons[nomerPersa].l1);
this.leftPanel.Controls.Add(persons[nomerPersa].l1);
persons[nomerPersa].l2 = new Label();
persons[nomerPersa].l2.Top = yPersa;
@ -68,7 +68,7 @@ namespace WindowsFormsApplication1
persons[nomerPersa].l2.Width = 60;
persons[nomerPersa].l2.Visible = true;
persons[nomerPersa].l2.Text = "Перс" + (nomerPersa + 1).ToString();
this.panel1.Controls.Add(persons[nomerPersa].l2);
this.leftPanel.Controls.Add(persons[nomerPersa].l2);
persons[nomerPersa].l3 = new Label();
persons[nomerPersa].l3.Top = yPersa;
@ -76,7 +76,7 @@ namespace WindowsFormsApplication1
persons[nomerPersa].l3.Width = 40;
persons[nomerPersa].l3.Visible = true;
persons[nomerPersa].l3.Text = "saved";
this.panel1.Controls.Add(persons[nomerPersa].l3);
this.leftPanel.Controls.Add(persons[nomerPersa].l3);
persons[nomerPersa].b1 = new Button();
persons[nomerPersa].b1.Top = yPersa;
@ -85,8 +85,8 @@ namespace WindowsFormsApplication1
persons[nomerPersa].b1.Visible = true;
persons[nomerPersa].b1.Text = "Edit";
persons[nomerPersa].b1.MouseClick +=
new MouseEventHandler(this.button1_Click_2);
this.panel1.Controls.Add(persons[nomerPersa].b1);
new MouseEventHandler(this.Char_Creator_Button_Click);
this.leftPanel.Controls.Add(persons[nomerPersa].b1);
ToolTip tView = new ToolTip();
tView.IsBalloon = true;
@ -102,8 +102,8 @@ namespace WindowsFormsApplication1
persons[nomerPersa].b2.Visible = true;
persons[nomerPersa].b2.Text = "Del";
persons[nomerPersa].b2.Click +=
new System.EventHandler(this.label13_Click);
this.panel1.Controls.Add(persons[nomerPersa].b2);
new System.EventHandler(this.Char_Info_Click);
this.leftPanel.Controls.Add(persons[nomerPersa].b2);
ToolTip tDelete = new ToolTip();
tDelete.IsBalloon = true;
@ -310,7 +310,7 @@ namespace WindowsFormsApplication1
}
}
private void button1_Click_2(object sender, MouseEventArgs e)
private void Char_Creator_Button_Click(object sender, MouseEventArgs e)
{
for (int nomer = 0; nomer < nomerPersa; nomer++)
{
@ -337,13 +337,13 @@ namespace WindowsFormsApplication1
}
}
private void label13_Click(object sender, EventArgs e)
private void Char_Info_Click(object sender, EventArgs e)
{
this.panel1.Controls.Remove(persons[nomerPersa - 1].l1);
this.panel1.Controls.Remove(persons[nomerPersa - 1].l2);
this.panel1.Controls.Remove(persons[nomerPersa - 1].l3);
this.panel1.Controls.Remove(persons[nomerPersa - 1].b1);
this.panel1.Controls.Remove(persons[nomerPersa - 1].b2);
this.leftPanel.Controls.Remove(persons[nomerPersa - 1].l1);
this.leftPanel.Controls.Remove(persons[nomerPersa - 1].l2);
this.leftPanel.Controls.Remove(persons[nomerPersa - 1].l3);
this.leftPanel.Controls.Remove(persons[nomerPersa - 1].b1);
this.leftPanel.Controls.Remove(persons[nomerPersa - 1].b2);
nomerPersa--;
yPersa = yPersa - 30;
}