#region 画出X轴与Y轴
private void DrawXY()
{
int MaxX;
int MaxY;
Graphics g = this.panel1.CreateGraphics();
MaxX = System.Convert.ToInt32(this.MaxX.Text);
MaxY = System.Convert.ToInt32(this.MaxY.Text);
//绘制X轴
Point px1=new Point(0,MaxY);
Point px2=new Point(MaxX,MaxY);
g.DrawLine(new Pen(Brushes.Black,1),px1,px2);
//绘制Y轴
Point py1=new Point(0,MaxY);
Point py2=new Point(0,0);
g.DrawLine(new Pen(Brushes.Black,1),py1,py2);
}
#endregion
#region 画出X轴上的分值线
private void DrawXLine()
{
int MaxX;
int MaxY;
Graphics g = this.panel1.CreateGraphics();
MaxX = System.Convert.ToInt32(this.MaxX.Text);
MaxY = System.Convert.ToInt32(this.MaxY.Text);
for