using Yw.Curve;
|
using System.Text;
|
|
namespace Yw.WinFrmUI.Phart
|
{
|
public partial class CurveEquationDlg : DevExpress.XtraEditors.XtraForm
|
{
|
public CurveEquationDlg()
|
{
|
InitializeComponent();
|
}
|
|
public void SetBindingData(Yw.Curve.CurveExpress curveQH)
|
{
|
|
var sb = new StringBuilder();
|
if (curveQH != null)
|
{
|
|
sb.AppendLine("H=" + curveQH.GetCurveFunction());
|
sb.AppendLine();
|
|
}
|
|
this.memoEdit.Text = sb.ToString();
|
}
|
|
public void SetBindingData(Yw.Curve.CurveExpress curveQH, Yw.Curve.CurveExpress curveQE, Yw.Curve.CurveExpress curveQP)
|
{
|
var sb = new StringBuilder();
|
if (curveQH != null)
|
{
|
sb.AppendLine("H=" + curveQH.GetCurveFunction());
|
sb.AppendLine();
|
|
}
|
if (curveQE != null)
|
{
|
sb.AppendLine("E=" + curveQE.GetCurveFunction());
|
sb.AppendLine();
|
}
|
if (curveQP != null)
|
{
|
sb.AppendLine("P=" + curveQP.GetCurveFunction());
|
}
|
|
this.memoEdit.Text = sb.ToString();
|
}
|
|
|
}
|
}
|