ify"> label1.Text = "0";
label2.Text = "0";
label3.Text = "0";
label4.Text = "0";
} button4_Click (object sender, EventArgs e)
{(debug.Enabled)
debug.Enabled = false;
debug.Enabled = true;
} listView1_ColumnClick (object sender, ColumnClickEventArgs e)
{
// Create an instance of the ColHeader class.clickedCol = (ColHeader) this.listView1.Columns [e.Column];
// Set the ascending property to sort in the opposite order.
clickedCol.ascending =! clickedCol.ascending;
// Get the number of items in the list.numItems = this.listView1.Items.Count;
// Turn off display while data is repoplulated .. listView1.BeginUpdate ();
// Populate an ArrayList with a SortWrapper of each list item.SortArray = newArrayList (); (int i = 0; i
{
SortArray.Add (newSortWrapper (this.listView1.Items [i], e.Column));
}
// Sort the elements in the ArrayList using a new instance of the SortComparer
// class. The parameters are the starting index, the length of the range to sort,
// and the IComparer implementation to use for comparing elements. Note that
// the IComparer implementation (SortComparer) requires the sort
// direction for its constructor; true if ascending, othwise false.
SortArray.Sort (0, SortArray.Count, newSortWrapper.SortComparer (clickedCol.ascending));
// Clear the list, and repopulate with the sorted items .. listView1.Items.Clear (); (int i = 0; i
// Turn display back on .. listView1.EndUpdate ();
} MainWindow_Load (object sender, EventArgs e)
{
} MainWindow_Load_1 (object sender, EventArgs e)
{
} RightPanel_Paint (object sender, PaintEventArgs e)
{
} button3_Click (object sender, EventArgs e)
{
MF = (MainWindow) Form.ActiveForm;
PanelPad.Visible = true;
PanelMenu.Visible = false;
panel2.Enabled = true;
panel2.Visible = true;
panel3.Visible = true;
panel3.Enabled = true;
game = "Tanks";
} checkBox3_CheckedChanged (object sender...