-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGame.Designer.cs
76 lines (71 loc) · 2.36 KB
/
Game.Designer.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
namespace Game
{
partial class Game
{
/// <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();
canvas = new PictureBox();
timer = new System.Windows.Forms.Timer(components);
((System.ComponentModel.ISupportInitialize)canvas).BeginInit();
SuspendLayout();
//
// canvas
//
canvas.Location = new Point(12, 12);
canvas.Name = "canvas";
canvas.Size = new Size(984, 449);
canvas.TabIndex = 0;
canvas.TabStop = false;
canvas.Paint += OnCanvasPaint;
canvas.MouseDown += OnMouseDown;
canvas.MouseMove += OnMouseMove;
canvas.MouseUp += OnMouseUp;
//
// timer
//
timer.Enabled = true;
timer.Interval = 1;
timer.Tick += Tick;
//
// Game
//
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(1008, 537);
Controls.Add(canvas);
Name = "Game";
Text = "Game";
Load += OnLoad;
KeyDown += OnKeyDown;
KeyUp += OnKeyUp;
Resize += OnFormResize;
((System.ComponentModel.ISupportInitialize)canvas).EndInit();
ResumeLayout(false);
}
#endregion
private PictureBox canvas;
private System.Windows.Forms.Timer timer;
}
}