www.pudn.com > LINkSee.rar > Congratulation.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace LinkSee
{
public partial class Congratulation : Form
{
protected int type=5;
public int Type
{
get { return this.type; }
set { this.type = value; }
}
protected int changeCard = 0;
public int ChangeCard
{
get { return this.changeCard; }
set { this.changeCard = value; }
}
public Congratulation()
{
InitializeComponent();
}
public Congratulation(int tm,int diff)
{
InitializeComponent();
this.time.Text = tm.ToString() + " s";
switch (diff)
{
case 5: this.diff.Text = "容易"; break;
case 10: this.diff.Text = "中等"; break;
case 15: this.diff.Text = "困难"; break;
case 20: this.diff.Text = "极难"; break;
}
}
private void exit_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.No;
}
private void start_Click(object sender, EventArgs e)
{
this.Type = (this.diff2.SelectedIndex + 1) * 5;
this.DialogResult = DialogResult.Yes;
}
private void about_Click(object sender, EventArgs e)
{
MessageBox.Show("D字头工作室:\n\nYiYi 王安坤\n\n周斌 刘涛\n\n张博 党晓柯\n\n姜川 宋寅宾\n\n朱勇博 高洁", "LinkSee");//注意格式
}
}
}