|
本帖最后由 秋仔 于 2022-5-14 21:23 编辑
https://pan.baidu.com/s/1Dpd7oSGRX_be-3aqF5UYaQ提取码:ercj
一、ControlForm窗体
namespace 贪吃蛇
{
public partial class ControlFrm : Form
{
public ControlFrm()
{
InitializeComponent();
}
//“关于”按钮click
private void button3_Click(object sender, EventArgs e)
{
AboutMe hf = new AboutMe();
hf.ShowDialog();
}
//“玩法介绍”按钮click
private void button2_Click(object sender, EventArgs e)
{
HowToPlay htp = new HowToPlay();
htp.ShowDialog();
}
//“开始游戏”按钮click
private void button1_Click(object sender, EventArgs e)
{
GameFrm gf = new GameFrm();
gf.ShowDialog();
}
}
}
二、GameForm窗体
namespace 贪吃蛇
{
public partial class GameFrm : Form
{
#region 构造函数
public GameFrm()
{
InitializeComponent();
}
........................
}
|
|