147 lines
5.0 KiB
C#
147 lines
5.0 KiB
C#
namespace view
|
|
{
|
|
partial class MainForm
|
|
{
|
|
/// <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();
|
|
btnEndGame = new Button();
|
|
lblLoading = new Label();
|
|
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(btnEndGame);
|
|
Canvas.Controls.Add(lblLoading);
|
|
Canvas.Controls.Add(btnStart);
|
|
Canvas.Location = new Point(0, 0);
|
|
Canvas.Name = "Canvas";
|
|
Canvas.Size = new Size(480, 480);
|
|
Canvas.TabIndex = 0;
|
|
//
|
|
// btnEndGame
|
|
//
|
|
btnEndGame.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
btnEndGame.Location = new Point(193, 261);
|
|
btnEndGame.Name = "btnEndGame";
|
|
btnEndGame.Size = new Size(94, 29);
|
|
btnEndGame.TabIndex = 2;
|
|
btnEndGame.Text = "END GAME";
|
|
btnEndGame.UseVisualStyleBackColor = true;
|
|
btnEndGame.Click += button1_Click;
|
|
//
|
|
// lblLoading
|
|
//
|
|
lblLoading.AutoSize = true;
|
|
lblLoading.Font = new Font("Segoe UI", 15F);
|
|
lblLoading.Location = new Point(92, 151);
|
|
lblLoading.Name = "lblLoading";
|
|
lblLoading.Size = new Size(296, 35);
|
|
lblLoading.TabIndex = 1;
|
|
lblLoading.Text = "Loading data, please wait";
|
|
//
|
|
// btnStart
|
|
//
|
|
btnStart.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
btnStart.Enabled = false;
|
|
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";
|
|
FormClosing += Form1_FormClosing;
|
|
Shown += Form1_Shown;
|
|
KeyDown += Form1_KeyDown;
|
|
PreviewKeyDown += Form1_PreviewKeyDown;
|
|
Canvas.ResumeLayout(false);
|
|
Canvas.PerformLayout();
|
|
panel1.ResumeLayout(false);
|
|
panel1.PerformLayout();
|
|
ResumeLayout(false);
|
|
}
|
|
|
|
#endregion
|
|
|
|
private Panel Canvas;
|
|
private Panel panel1;
|
|
private Label label1;
|
|
private TextBox txtScore;
|
|
private Button btnStart;
|
|
private Label lblLoading;
|
|
private Button btnEndGame;
|
|
}
|
|
}
|