日期:2014-05-17 浏览次数:20869 次
private int i = 0;
public int I
{
get
{
return i;
}
set
{
i = value;
progressBar1.Value = i;
label1.Text = Convert.ToString(i) + "%";
if (i == 100)
{
button1.Enabled = true;
}
else
{
button1.Enabled = false;
}
}
}
private void Form1_Load(object sender, EventArgs e)
{
timer1.Enabled = true;
timer1.Interval = 100;
}
private void timer1_Tick(object sender, EventArgs e)
{
if (I < 100)
{
I++;
}
else
{
timer1.Enabled = false;
&