Code:
private void button1_Click(object sender, EventArgs e)
{
Count++;
button1.Text = Count.ToString();
if (Count % 2 == 1)
{
timer1.Start();
progressBar1.Increment(5);
}
if (Count % 2==0)
{
timer1.Stop();
}
}
private void button1_Click(object sender, EventArgs e)
{
Count++;
button1.Text = Count.ToString();
if (Count % 2 == 1)
{
timer1.Start();
progressBar1.Increment(5);
}
if (Count % 2==0)
{
timer1.Stop();
}
}
Sta da ispravim?