推箱子 C#开发智能手机游戏推箱子软件
C#开发智能手机游戏推箱子软件
这是 使用 C# 开发智能手机软件 推箱子 在这篇文章中 介绍 Window/ConfigDlg cs 源程序文件 这个源程序文件包含 ConfigDlg 类 该类继承自 System Windows Forms Form 类 表示推箱子的 配置 对话框 如下图所示

下面是 Window/ConfigDlg Designer cs 的源程序的部分代码
namespace Skyiv Ben PushBox Window { partial class ConfigDlg { private void InitializeComponent() { // 注意 省略了一些代码
this btnSave DialogResult = System Windows Forms DialogResult OK; this btnCancel DialogResult = System Windows Forms DialogResult Cancel; this btnAdd Click += new System EventHandler(this btnAdd_Click); this btnDelete Click += new System EventHandler(this btnDelete_Click); this btnUp Click += new System EventHandler(this btnUp_Click); this btnDown Click += new System EventHandler(this btnDown_Click); }
private System Windows Forms ListBox lbxGroup; private System Windows Forms TextBox tbxGroup; private System Windows Forms Button btnSave; private System Windows Forms Button btnCancel; private System Windows Forms Button btnAdd; private System Windows Forms Button btnDelete; private System Windows Forms Button btnUp; private System Windows Forms Button btnDown; } }
下面是 ConfigDlg cs 的源程序代码
lishixinzhi/Article/program/net/201311/11868