走迷宫c版(二)
ReadyGo!技术成就梦想
www.efish.cn
efish
2007-10-25 10:14:36
//窗体,调用...
using system;
using system.drawing;
using system.collections;
using system.componentmodel;
using system.windows.forms;
using system.data;
using system.threading;
namespace mazedemo
{
/// <summary>
/// form1 的摘要说明。
/// </summary>
public class form1 : system.windows.forms.form
{
private system.windows.forms.button button1;
/// <summary>
/// 必需的设计器变量。
/// </summary>
///
private cmaze mymaze;
private system.windows.forms.button button2;
private system.windows.forms.button btnabout;
private system.windows.forms.button btnrun;
private system.windows.forms.button btnreset;
private system.windows.forms.panel panel1;
private system.windows.forms.label label1;
private system.windows.forms.label label2;
private system.windows.forms.label label3;
private system.windows.forms.label label4;
private system.windows.forms.label label5;
private system.windows.forms.label label6;
private system.windows.forms.label label7;
private system.windows.forms.label label8;
private system.windows.forms.button button3;
private system.componentmodel.icontainer components=null;
public form1()
{
//
// windows 窗体设计器支持所必需的
//
initializecomponent();
//
// todo: 在 initializecomponent 调用后添加任何构造函数代码
//
bool _mg=new bool{{true,false,false,true,false,false,false},
{true,true,true,true,true,true,true},
{false,false,true,false,true,false,true},
{false,false,true,false,true,false,false},
{false,true,true,false,true,false,false},
{true,true,false,false,true,true,false},
{false,false,false,false,false,true,true}
};
mymaze=new cmaze(_mg,new point(0,0),new point(6,6));
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.dispose();
}
}
base.dispose( disposing );
}
#region windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void initializecomponent()
{
this.button1 = new system.windows.forms.button();
this.button2 = new system.windows.forms.button();
this.btnabout = new system.windows.forms.button();
this.btnrun = new system.windows.forms.button();
this.btnreset = new system.windows.forms.button();
this.panel1 = new system.windows.forms.panel();
this.label8 = new system.windows.forms.label();
this.label7 = new system.windows.forms.label();
this.label6 = new system.windows.forms.label();
this.label5 = new system.windows.forms.label();
this.label4 = new system.windows.forms.label();
this.label3 = new system.windows.forms.label();
this.label2 = new system.windows.forms.label();
this.label1 = new system.windows.forms.label();
this.button3 = new system.windows.forms.button();
this.panel1.suspendlayout();
this.suspendlayout();
//
// button1
//
this.button1.location = new system.drawing.point(360, 288);
this.button1.name = "button1";
this.button1.tabindex = 0;
this.button1.text = "info";
this.button1.click += new system.eventhandler(this.button1_click);
//
// button2
//
this.button2.location = new system.drawing.point(360, 192);
this.button2.name = "button2";
this.button2.tabindex = 1;
this.button2.text = "step";
this.button2.click += new system.eventhandler(this.button2_click);
//
// btnabout
//
this.btnabout.location = new system.drawing.point(360, 320);
this.btnabout.name = "btnabout";
this.btnabout.tabindex = 2;
this.btnabout.text = "about";
this.btnabout.click += new system.eventhandler(this.btnabout_click);
//
// btnrun
//
this.btnrun.location =
using system;
using system.drawing;
using system.collections;
using system.componentmodel;
using system.windows.forms;
using system.data;
using system.threading;
namespace mazedemo
{
/// <summary>
/// form1 的摘要说明。
/// </summary>
public class form1 : system.windows.forms.form
{
private system.windows.forms.button button1;
/// <summary>
/// 必需的设计器变量。
/// </summary>
///
private cmaze mymaze;
private system.windows.forms.button button2;
private system.windows.forms.button btnabout;
private system.windows.forms.button btnrun;
private system.windows.forms.button btnreset;
private system.windows.forms.panel panel1;
private system.windows.forms.label label1;
private system.windows.forms.label label2;
private system.windows.forms.label label3;
private system.windows.forms.label label4;
private system.windows.forms.label label5;
private system.windows.forms.label label6;
private system.windows.forms.label label7;
private system.windows.forms.label label8;
private system.windows.forms.button button3;
private system.componentmodel.icontainer components=null;
public form1()
{
//
// windows 窗体设计器支持所必需的
//
initializecomponent();
//
// todo: 在 initializecomponent 调用后添加任何构造函数代码
//
bool _mg=new bool{{true,false,false,true,false,false,false},
{true,true,true,true,true,true,true},
{false,false,true,false,true,false,true},
{false,false,true,false,true,false,false},
{false,true,true,false,true,false,false},
{true,true,false,false,true,true,false},
{false,false,false,false,false,true,true}
};
mymaze=new cmaze(_mg,new point(0,0),new point(6,6));
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.dispose();
}
}
base.dispose( disposing );
}
#region windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void initializecomponent()
{
this.button1 = new system.windows.forms.button();
this.button2 = new system.windows.forms.button();
this.btnabout = new system.windows.forms.button();
this.btnrun = new system.windows.forms.button();
this.btnreset = new system.windows.forms.button();
this.panel1 = new system.windows.forms.panel();
this.label8 = new system.windows.forms.label();
this.label7 = new system.windows.forms.label();
this.label6 = new system.windows.forms.label();
this.label5 = new system.windows.forms.label();
this.label4 = new system.windows.forms.label();
this.label3 = new system.windows.forms.label();
this.label2 = new system.windows.forms.label();
this.label1 = new system.windows.forms.label();
this.button3 = new system.windows.forms.button();
this.panel1.suspendlayout();
this.suspendlayout();
//
// button1
//
this.button1.location = new system.drawing.point(360, 288);
this.button1.name = "button1";
this.button1.tabindex = 0;
this.button1.text = "info";
this.button1.click += new system.eventhandler(this.button1_click);
//
// button2
//
this.button2.location = new system.drawing.point(360, 192);
this.button2.name = "button2";
this.button2.tabindex = 1;
this.button2.text = "step";
this.button2.click += new system.eventhandler(this.button2_click);
//
// btnabout
//
this.btnabout.location = new system.drawing.point(360, 320);
this.btnabout.name = "btnabout";
this.btnabout.tabindex = 2;
this.btnabout.text = "about";
this.btnabout.click += new system.eventhandler(this.btnabout_click);
//
// btnrun
//
this.btnrun.location =
2秒记住本站域名
玩过泡泡龙吗?Readygo?Go! 再加上.Com.Cn的后缀,那就是大名小顶的ReadyGo.com.cn
