vsa 3 years ago
parent
commit
e251cf76e2
  1. 30
      WorkField/WorkField/Form1.Designer.cs
  2. 2
      WorkField/WorkField/Form1.cs

30
WorkField/WorkField/Form1.Designer.cs

@ -30,6 +30,7 @@
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
this.button1 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel();
this.fieldControl1 = new WorkFieldWin.FieldControl();
this.panel2 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel();
this.lab2Y = new System.Windows.Forms.Label(); this.lab2Y = new System.Windows.Forms.Label();
this.lab2X = new System.Windows.Forms.Label(); this.lab2X = new System.Windows.Forms.Label();
@ -41,7 +42,6 @@
this.panel4 = new System.Windows.Forms.Panel(); this.panel4 = new System.Windows.Forms.Panel();
this.panel5 = new System.Windows.Forms.Panel(); this.panel5 = new System.Windows.Forms.Panel();
this.fieldControl2 = new WorkFieldWin.FieldControl(); this.fieldControl2 = new WorkFieldWin.FieldControl();
this.fieldControl1 = new WorkFieldWin.FieldControl();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
this.panel2.SuspendLayout(); this.panel2.SuspendLayout();
this.panel3.SuspendLayout(); this.panel3.SuspendLayout();
@ -69,6 +69,15 @@
this.panel1.Size = new System.Drawing.Size(784, 190); this.panel1.Size = new System.Drawing.Size(784, 190);
this.panel1.TabIndex = 1; this.panel1.TabIndex = 1;
// //
// fieldControl1
//
this.fieldControl1.BackColor = System.Drawing.Color.WhiteSmoke;
this.fieldControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.fieldControl1.Location = new System.Drawing.Point(0, 0);
this.fieldControl1.Name = "fieldControl1";
this.fieldControl1.Size = new System.Drawing.Size(784, 190);
this.fieldControl1.TabIndex = 0;
//
// panel2 // panel2
// //
this.panel2.Controls.Add(this.lab2Y); this.panel2.Controls.Add(this.lab2Y);
@ -171,15 +180,6 @@
this.fieldControl2.Size = new System.Drawing.Size(784, 362); this.fieldControl2.Size = new System.Drawing.Size(784, 362);
this.fieldControl2.TabIndex = 1; this.fieldControl2.TabIndex = 1;
// //
// fieldControl1
//
this.fieldControl1.BackColor = System.Drawing.Color.WhiteSmoke;
this.fieldControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.fieldControl1.Location = new System.Drawing.Point(0, 0);
this.fieldControl1.Name = "fieldControl1";
this.fieldControl1.Size = new System.Drawing.Size(784, 190);
this.fieldControl1.TabIndex = 0;
//
// Form1 // Form1
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@ -214,10 +214,10 @@
private System.Windows.Forms.Label lab1X; private System.Windows.Forms.Label lab1X;
private System.Windows.Forms.Button btnMove; private System.Windows.Forms.Button btnMove;
private System.Windows.Forms.Timer timer1; private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.Panel panel4; private System.Windows.Forms.Panel panel4;
private WorkFieldWin.FieldControl fieldControl1; private WorkFieldWin.FieldControl fieldControl1;
private WorkFieldWin.FieldControl fieldControl2; private WorkFieldWin.FieldControl fieldControl2;
private System.Windows.Forms.Panel panel5; private System.Windows.Forms.Panel panel5;
} }
} }

2
WorkField/WorkField/Form1.cs

@ -13,6 +13,8 @@ namespace WorkField
{ {
InitializeComponent(); InitializeComponent();
h_PrepareStadium(); h_PrepareStadium();
fieldControl1.Init(_stadium);
fieldControl2.Init(_stadium);
// h_RefreshPanel(); // h_RefreshPanel();
} }

Loading…
Cancel
Save