//3.显示结果 private void showResult() { CD.business2.setBusinessValue(this); name.Text = ReadIDCar.name; persionid.Text = ReadIDCar.getSubCardID(); int i; for (i = 0; i < index; i++) { points[i].Source = bluePoint; if (i < 6) { lines[i].Source = blueLine; } texts[i].Foreground = blue; scripts[i].Visibility = Visibility.Visible; status.Text = texts[i].Text; } for (; i < points.Count; i++) { points[i].Source = grayPoint; if (i < lines.Count) { lines[i].Source = grayLine; } texts[i].Foreground = Brushes.Black; scripts[i].Visibility = Visibility.Hidden; } if (index - 1 >= 0) { status.Text = texts[index - 1].Text; } if (index < 5) { T52.Text = ""; } }