Merge pull request #19 from IngenerkaTeamCenter/ArkLightning-patch-1

Добавил лэйблы и кнопки (по нажатию)
This commit is contained in:
Mikhail Abramov 2018-03-16 21:11:22 +03:00 committed by GitHub
commit 65fe8cbf46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 62 additions and 17 deletions

View file

@ -153,7 +153,7 @@
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(282, 380);
this.panel1.Size = new System.Drawing.Size(282, 527);
this.panel1.TabIndex = 4;
//
// label13
@ -365,7 +365,7 @@
//
this.splitter1.Location = new System.Drawing.Point(282, 0);
this.splitter1.Name = "splitter1";
this.splitter1.Size = new System.Drawing.Size(3, 380);
this.splitter1.Size = new System.Drawing.Size(3, 527);
this.splitter1.TabIndex = 5;
this.splitter1.TabStop = false;
//
@ -378,13 +378,13 @@
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(285, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(392, 380);
this.panel2.Size = new System.Drawing.Size(392, 527);
this.panel2.TabIndex = 6;
//
// SaveCharButton
//
this.SaveCharButton.Dock = System.Windows.Forms.DockStyle.Bottom;
this.SaveCharButton.Location = new System.Drawing.Point(0, 320);
this.SaveCharButton.Location = new System.Drawing.Point(0, 467);
this.SaveCharButton.Name = "SaveCharButton";
this.SaveCharButton.Size = new System.Drawing.Size(392, 30);
this.SaveCharButton.TabIndex = 3;
@ -413,7 +413,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(392, 324);
this.panel3.Size = new System.Drawing.Size(392, 471);
this.panel3.TabIndex = 2;
this.panel3.Visible = false;
//
@ -559,7 +559,7 @@
// SaveMultButton
//
this.SaveMultButton.Dock = System.Windows.Forms.DockStyle.Bottom;
this.SaveMultButton.Location = new System.Drawing.Point(0, 350);
this.SaveMultButton.Location = new System.Drawing.Point(0, 497);
this.SaveMultButton.Name = "SaveMultButton";
this.SaveMultButton.Size = new System.Drawing.Size(392, 30);
this.SaveMultButton.TabIndex = 1;
@ -593,7 +593,7 @@
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(677, 380);
this.ClientSize = new System.Drawing.Size(677, 527);
this.Controls.Add(this.panel2);
this.Controls.Add(this.splitter1);
this.Controls.Add(this.panel1);

View file

@ -18,7 +18,14 @@ namespace WindowsFormsApplication1
public partial class MainForm : Form
{
public TextBox[] b1 = new TextBox[100];
int yPersa = 300;
int nomerPersa = 0;
public Label[] l1 = new Label[100];
public Label[] l2 = new Label[100];
public Label[] l3 = new Label[100];
public Button[] b1 = new Button[100];
public Button[] b2 = new Button[100];
PictureBox[] pic1 = new PictureBox[1000];
@ -117,7 +124,7 @@ namespace WindowsFormsApplication1
File.AppendAllText(filename, "{" + Environment.NewLine);
File.AppendAllText(filename, " txCreateWindow(" +
PictureBoxBackground.Image.Width.ToString() + ", " +
PictureBoxBackground.Image.Height.ToString() + ");" + Environment.NewLine);
PictureBoxBackground.Image.Height.ToString() + ");" + Environment.NewLine);
}
private void open_while(string filename)
@ -140,7 +147,7 @@ namespace WindowsFormsApplication1
private void delete_pics(string filename)
{
File.AppendAllText(filename, Environment.NewLine);
File.AppendAllText(filename, "txDeleteDC(per.texture);" + Environment.NewLine);
File.AppendAllText(filename, " txDeleteDC(per.texture);" + Environment.NewLine);
}
private void file_forser(string filename)
@ -182,7 +189,6 @@ namespace WindowsFormsApplication1
close_while(filename);
delete_pics(filename);
}
else if (ComboBoxMove.Text == "Волнами")
{
sinus_create_person(filename);
@ -365,12 +371,51 @@ namespace WindowsFormsApplication1
private void button2_Click(object sender, EventArgs e)
{
b1[0] = new TextBox();
b1[0].Top = 10;
b1[0].Left = 30;
b1[0].Width = 200;
l1[0] = new Label();
l1[0].Top = yPersa;
l1[0].Left = 30;
l1[0].Width = 20;
l1[0].Visible = true;
l1[0].Text = "1";
this.panel1.Controls.Add(l1[0]);
l2[0] = new Label();
l2[0].Top = yPersa;
l2[0].Left = 60;
l2[0].Width = 60;
l2[0].Visible = true;
l2[0].Text = "Перс1";
this.panel1.Controls.Add(l2[0]);
l3[0] = new Label();
l3[0].Top = yPersa;
l3[0].Left = 120;
l3[0].Width = 40;
l3[0].Visible = true;
l3[0].Text = "ocphcghfgh";
this.panel1.Controls.Add(l3[0]);
b1[0] = new Button();
b1[0].Top = yPersa;
b1[0].Left = 170;
b1[0].Width = 50;
b1[0].Visible = true;
b1[0].Text = "R";
this.panel1.Controls.Add(b1[0]);
b2[0] = new Button();
b2[0].Top = yPersa;
b2[0].Left = 230;
b2[0].Width = 50;
b2[0].Visible = true;
b2[0].Text = "X";
this.panel1.Controls.Add(b2[0]);
yPersa = yPersa + 30;
}
private void button3_Click(object sender, EventArgs e)
{
}
private void TextBoxWall1_TextChanged(object sender, EventArgs e)
@ -378,4 +423,4 @@ namespace WindowsFormsApplication1
}
}
}
}

View file

@ -124,6 +124,6 @@
<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>
<value>25</value>
</metadata>
</root>