private void mnuDeleteCurve_Click(object sender, EventArgs e)
        {
            if (this.LineListSets.Count == 1)
            {
                MessageBox.Show("只有一条曲线,不允许删除!");
                return;
            }
            frmAddCurve frmaddCurve = new frmAddCurve(this.Parameters);

            DialogResult dr = frmaddCurve.ShowDialog();
            if (dr == DialogResult.OK)
            {
                if (GetParameterObject != null)
                {
                    int index = this.Parameters.IndexOf(frmaddCurve.SelectedParameter);
                    this.Parameters.RemoveAt(index);
                    this.LineListSets.RemoveAt(index);
                    ReDrawCurve();
                }
            }
        }
 private void mnuAddCurve_Click(object sender, EventArgs e)
 {
     List<IParameter> parameters = GetParameterObject.GetParameterDef();
     frmAddCurve frmaddCurve = new frmAddCurve(parameters);
     
     DialogResult dr = frmaddCurve.ShowDialog();
     if (dr == DialogResult.OK)
     {
         if (GetParameterObject != null)
         {
             this.Parameters.Add(frmaddCurve.SelectedParameter);
             List<float> data = GetParameterObject.GetParameterData(frmaddCurve.SelectedParameter);
             LineList lineList = new LineList(frmaddCurve.SelectedParameter, data);
             lineList.LineUnit = frmaddCurve.SelectedParameter.Unit;
             lineList.LineName = frmaddCurve.SelectedParameter.Caption;
             DrawCurve(lineList, startNum, endNum);
             this.Refresh();
         }
     }
     
 }