走迷宫c版(二)
ReadyGo!技术成就梦想
www.efish.cn
efish
2007-10-25 10:11:25
//窗体,调用...
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 =
责任编辑: efish
参与评论
查找更多:
一个类似于calendar日期控件,不用再刷新页面。用c去除代码的sourcesafe管理(续篇)[c]:如何在c#中读写ini文件(三)[c]:如何在c#中读写ini文件(二)[c]:如何在c#中读写ini文件(五) asp.net的缓冲处理&38568;心所欲&29986;生&22294;案使用asp.net &39023;示事件日&35468;&32000;&37636;用c编写发手机中文短信息windows服务asp.net的实时天气及24小时天气预报(c)操作excel(c)c版的网站新闻发布系统 .net中的特殊类型成员 .net新平台编程 asp.net学习手记:验证用户表单输入关于c中的消息处理函数和vc中的消息处理函数区别c中键盘钩子的使用(转)用c在域中增加用户和邮箱c中奇妙的操作符重载走迷宫c版(二)
-
相关文章
走迷宫c版(二)
//窗体,调用... using system; using system.drawing; using system.collections; using system.component..
2秒记住本站域名
玩过泡泡龙吗?Readygo?Go! 再加上.Com.Cn的后缀,那就是大名小顶的ReadyGo.com.cn
