align="justify"> panel3.Enabled = false;
PanelPad.Visible = false;
PanelMenu.Visible = true;
} Pause_PreviewKeyDown (object sender, PreviewKeyDownEventArgs e)
{(e.KeyCode)
e.IsInputKey = true;;
}
} button1_PreviewKeyDown (object sender, PreviewKeyDownEventArgs e)
{(e.KeyCode)
e.IsInputKey = true;;
}
} checkBox2_PreviewKeyDown (object sender, PreviewKeyDownEventArgs e)
{(e.KeyCode)
e.IsInputKey = true;;
}
} checkBox3_PreviewKeyDown (object sender, PreviewKeyDownEventArgs e)
{(e.KeyCode)
e.IsInputKey = true;;
}
} button5_PreviewKeyDown (object sender, PreviewKeyDownEventArgs e)
{(e.KeyCode)
e.IsInputKey = true;;
}
} startTanks (object sender, EventArgs e)
{(Tanks_ == null)
{
checkBox2.Text = "Stop";
Tanks_ = newTanks ();
Tanks_.Start ();
thrTime = newThread (newThreadStart (time));
thrTime.Start ();
richTextBox1.Enabled = false;
richTextBox2.Enabled = false;
Tanks_.Tank_1.name = richTextBox2.Text;
Tanks_.Tank_.name = richTextBox1.Text;
}
{
checkBox2.Text = "Start";
Tanks_.thr.Abort ();
Tanks_.ClearTable ();
Tanks_ = null;
thrTime.Abort ();
label11.Text = "0";
richTextBox1.Enabled = true;
richTextBox2.Enabled = true;
}
}
}
{sortItem; sortColumn;
// A SortWrapper requires the item and the index of the clicked column.SortWrapper (ListViewItem Item, int iColumn)
{
sortItem = Item;
sortColumn = iColumn;
}
// Text property for getting the text of an item.Text
{
{sortItem.SubItems [sortColumn]. Text;
}
}
// Implementation of the IComparer
// interface for sorting ArrayList items.: IComparer