private static void DrawOneLine(object sender, EventArgs e) { Connection c = connections[count]; count++; graphics.DrawLine(Pens.Black, points[c.P], points[c.Q]); logBox.AppendText("\r\n绘制" + "(" + c.P + ", " + c.Q + ")"); if (count == bag.Size()) { timer.Stop(); logBox.AppendText("\r\n绘制结束"); count = 0; } }
private static void DrawOneLine(object sender, EventArgs e) { var c = _connections[_count]; _count++; _graphics.DrawLine(Pens.Black, _points[c.P], _points[c.Q]); _logBox.AppendText("\r\n绘制" + "(" + c.P + ", " + c.Q + ")"); if (_count == _bag.Size()) { _timer.Stop(); _logBox.AppendText("\r\n绘制结束"); _count = 0; } }