, EventArgs e)
{(checkBox1.Checked)
{
Tanks_.thr.Resume ();
thrTime.Resume ();
label5.Visible = false;
checkBox2.Enabled = true;
}
{
Tanks_.thr.Suspend ();
thrTime.Suspend ();
label5.Visible = true;
checkBox2.Enabled = false;
}
} groupBox1_Enter (object sender, EventArgs e)
{
} richTextBox1_TextChanged (object sender, EventArgs e)
{
} time ()
{time = 0; (true)
{
updateT ();. Sleep (1000);
time + +;
Tanks_.Tank_.score + = 40;
Tanks_.Tank_1.score + = 40; (time% 60 == 0)
{
label11.Text = (time/60). ToString () + ":" + "0";
}
{
label11.Text = (time/60). ToString () + ":" + (time% 60). ToString ();
}
}
} gOver (string name)
{
Tanks_.ClearTable ();
checkBox2.Checked = false;. Show ("Танк" + name + "був убитий!", "GameOver", MessageBoxButtons.OK, MessageBoxIcon.Information);
} updateT ()
{(Tanks_ == null);. Text = Tanks_.Tank_.health.ToString ();
label12.Text = Tanks_.Tank_1.health.ToString ();
label7.Text = Tanks_.Tank_.cheat.ToString ();
label8.Text = Tanks_.Tank_1.cheat.ToString ();
label9.Text = Tanks_.Tank_.score.ToString ();
label10.Text = Tanks_.Tank_1.score.ToString (); ();
} button5_Click (object sender, EventArgs e)
{(Tanks_.thr! = null) (Tanks_.thr.ThreadState == System.Threading.ThreadState.Suspended)
{
Tanks_.thr.Resume ();
Tanks_.thr.Abort ();
thrTime.Resume ();
thrTime.Abort ();
}
{
Tanks_.thr.Abort ();
thrTime.Abort ();
}
game = "Tanks";
checkBox2.Enabled = true;
checkBox2.Checked = false;
checkBox3.Checked = false;. Visible = false;
panel2.Enabled = false;
panel3.Visible = false;