116 lines
3.8 KiB
C#
116 lines
3.8 KiB
C#
namespace view
|
|
{
|
|
partial class Form1
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
Canvas = new Panel();
|
|
btnStart = new Button();
|
|
panel1 = new Panel();
|
|
txtScore = new TextBox();
|
|
label1 = new Label();
|
|
Canvas.SuspendLayout();
|
|
panel1.SuspendLayout();
|
|
SuspendLayout();
|
|
//
|
|
// Canvas
|
|
//
|
|
Canvas.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
Canvas.BackColor = Color.White;
|
|
Canvas.Controls.Add(btnStart);
|
|
Canvas.Location = new Point(0, 0);
|
|
Canvas.Name = "Canvas";
|
|
Canvas.Size = new Size(480, 480);
|
|
Canvas.TabIndex = 0;
|
|
//
|
|
// btnStart
|
|
//
|
|
btnStart.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
btnStart.Location = new Point(193, 226);
|
|
btnStart.Name = "btnStart";
|
|
btnStart.Size = new Size(94, 29);
|
|
btnStart.TabIndex = 0;
|
|
btnStart.Text = "START";
|
|
btnStart.UseVisualStyleBackColor = true;
|
|
btnStart.Click += btnStart_Click;
|
|
//
|
|
// panel1
|
|
//
|
|
panel1.Controls.Add(txtScore);
|
|
panel1.Controls.Add(label1);
|
|
panel1.Dock = DockStyle.Bottom;
|
|
panel1.Location = new Point(0, 486);
|
|
panel1.Name = "panel1";
|
|
panel1.Size = new Size(480, 94);
|
|
panel1.TabIndex = 0;
|
|
//
|
|
// txtScore
|
|
//
|
|
txtScore.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
txtScore.Location = new Point(64, 9);
|
|
txtScore.Name = "txtScore";
|
|
txtScore.ReadOnly = true;
|
|
txtScore.Size = new Size(404, 27);
|
|
txtScore.TabIndex = 1;
|
|
txtScore.TabStop = false;
|
|
//
|
|
// label1
|
|
//
|
|
label1.AutoSize = true;
|
|
label1.Location = new Point(12, 12);
|
|
label1.Name = "label1";
|
|
label1.Size = new Size(46, 20);
|
|
label1.TabIndex = 0;
|
|
label1.Text = "Score";
|
|
//
|
|
// Form1
|
|
//
|
|
AutoScaleDimensions = new SizeF(8F, 20F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
ClientSize = new Size(480, 580);
|
|
Controls.Add(panel1);
|
|
Controls.Add(Canvas);
|
|
Name = "Form1";
|
|
Text = "Snake";
|
|
KeyDown += Form1_KeyDown;
|
|
PreviewKeyDown += Form1_PreviewKeyDown;
|
|
Canvas.ResumeLayout(false);
|
|
panel1.ResumeLayout(false);
|
|
panel1.PerformLayout();
|
|
ResumeLayout(false);
|
|
}
|
|
|
|
#endregion
|
|
|
|
private Panel Canvas;
|
|
private Panel panel1;
|
|
private Label label1;
|
|
private TextBox txtScore;
|
|
private Button btnStart;
|
|
}
|
|
}
|