ting 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 ();
} setScoreShape (int s, int s_)
{
label1.Text = s.ToString ();
label4.Text = s_.ToString ();
} setRemovLines (int l)
{
label2.Text = l.ToString ();
} setLevel (int l)
{
label3.Text = l.ToString ();
} MainWindow ()
{
InitializeComponent ();. listView1.Columns.Add (newColHeader ("Name", 50, HorizontalAlignment.Left, true));. listView1.Columns.Add (newColHeader ("Score", 46, HorizontalAlignment.Left, true));. listView1.Columns.Add (newColHeader ("Level", 38, HorizontalAlignment.Left, true));. listView1.Columns.Add (newColHeader ("Lines", 49, HorizontalAlignment.Left, true));. listView1.Columns.Add (newColHeader ("Diff", 40, HorizontalAlignment.Left, true)); i = 0; tr = newStreamReader ("records.dat"); (tr . Peek ()! = -1)
{
listView1.Items.Add (tr.ReadLine ());
listView1.Items [i]. SubItems.Add (tr.ReadLine ());
listView1.Items [i]. SubItems.Add (tr.ReadLine ());
listView1.Items [i]. SubItems.Add (tr.ReadLine ());
listView1.Items [i]. SubItems.Add (tr.ReadLine ());
i + +;
}. Close ();
} OnPaint (PaintEventArgs e)
{
fullPaint = true;
gObj = Graphics.FromImage (PanelPad.Image);
gObj.SmoothingMode = SmoothingMode.HighSpeed; (debug.Enabled)
{
debug.Text = ""; (int x = 0; x <19; x + +)
{(int y = 0; y <10; y + +)
{(table [y, x] == true)
debug.Text + = "1";
debug.Text + = "0";
}
debug.Text + = " n";
}
}
(nextPaint)
{
<...