| | |
| | | } |
| | | |
| | | _cubic_spline_ql = new Yw.Geometry.CubicSpline2d(_pt_ql_list); |
| | | this.xtrPerform2dChart1.SetBindingData(_cubic_spline_ql, string.Empty, true); |
| | | this.xtrPerform2dChart1.SetBindingData(_cubic_spline_ql.ToDbString(), string.Empty, true); |
| | | return true; |
| | | } |
| | | |
| | |
| | | /// 获取数据 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public bool Get(out string other_name, out Yw.Geometry.CubicSpline2d ql) |
| | | public bool Get(out List<Yw.Geometry.Point2d> pt_list) |
| | | { |
| | | other_name = this.txtCurveCode.Text.Trim(); |
| | | ql = null; |
| | | pt_list = null; |
| | | |
| | | if (!loadChart()) |
| | | return false; |
| | | |
| | | if (string.IsNullOrEmpty(other_name)) |
| | | { |
| | | XtraMessageBox.Show("请输入曲线名称!"); |
| | | return false; |
| | | } |
| | | ql = new Yw.Geometry.CubicSpline2d(_pt_ql_list); |
| | | |
| | | pt_list = _pt_ql_list; |
| | | return true; |
| | | } |
| | | } |