public partial class Form1 : Form
{
string[] chengfa = null;
string[] Games = null;
string[] names = null;
int i = 0;
int a = 0;
int b = 0;
string name = "";
string name1 = "";
public Form1()
{
InitializeComponent();
Games = File.ReadAllLines(Application.StartupPath + "/游戏.txt", Encoding.Default);
chengfa = File.ReadAllLines(Application.StartupPath + "/惩罚.txt", Encoding.Default);
names = File.ReadAllLines(Application.StartupPath + "/人员名单.txt", Encoding.Default);
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
this.timer2.Stop();
this.timer3.Stop();
this.timer1.Start();
}
private void button2_Click(object sender, EventArgs e)
{
this.timer1.Stop();
}
private void button4_Click(object sender, EventArgs e)
{
this.timer1.Stop();
this.timer3.Stop();
this.timer2.Start();
}
private void button3_Click(object sender, EventArgs e)
{
this.timer2.Stop();
ArrayList ii = new ArrayList(chengfa);//把chengfa数组复制到ArrayLise中,便于删除