70 lines
2.2 KiB
C#
70 lines
2.2 KiB
C#
namespace Snake
|
|
{
|
|
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()
|
|
{
|
|
components = new System.ComponentModel.Container();
|
|
gamearea = new PictureBox();
|
|
timer = new System.Windows.Forms.Timer(components);
|
|
((System.ComponentModel.ISupportInitialize)gamearea).BeginInit();
|
|
SuspendLayout();
|
|
//
|
|
// gamearea
|
|
//
|
|
gamearea.Location = new Point(200, 25);
|
|
gamearea.Name = "gamearea";
|
|
gamearea.Size = new Size(400, 400);
|
|
gamearea.TabIndex = 0;
|
|
gamearea.TabStop = false;
|
|
//
|
|
// timer
|
|
//
|
|
timer.Enabled = true;
|
|
timer.Interval = 500;
|
|
timer.Tick += timer_Tick;
|
|
//
|
|
// Form1
|
|
//
|
|
AutoScaleDimensions = new SizeF(10F, 25F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
ClientSize = new Size(800, 450);
|
|
Controls.Add(gamearea);
|
|
Name = "Form1";
|
|
Text = "Form1";
|
|
Load += Form1_Load;
|
|
KeyDown += Form1_KeyDown;
|
|
((System.ComponentModel.ISupportInitialize)gamearea).EndInit();
|
|
ResumeLayout(false);
|
|
}
|
|
|
|
#endregion
|
|
private System.Windows.Forms.Timer timer;
|
|
public PictureBox gamearea;
|
|
}
|
|
}
|