, Visual C#


- 3


timer1.Enabled = false;

//, counter

// N_Interval,

// :

if (counter >= N_Interval)

{

//

//N_Interval, :

this.Text = " (Calculator)";

// counter :

counter = 0;

}

else

{

//

// N_Interval,

// :

this.Text = " " +

"(Calculator with animation)";

// 1:

counter = counter + 1;

}

}

2.6. , .

timer1.Enabled = false;

, .

, :

2.7. , .

timer1.Enabled = true;

2.8. .

// OffOn false:

bool OffOn = false;

private void button2_Click(object sender, EventArgs e)

{

//

// button2:

if (OffOn == false)

{

// :

timer1.Enabled = false;

// OffOn :

OffOn = true;

}

else

{

// :

timer1.Enabled = true;

 

// OffOn :

OffOn = false;

}

}

i:

i = i + 1;

if (i <= N_Beep)

Microsoft.VisualBasic.Interaction.Beep();