namespace HStation.WinFrmUI
|
{
|
public partial class UniversalChartViewCtrl : DevExpress.XtraEditors.XtraUserControl
|
{
|
public UniversalChartViewCtrl()
|
{
|
InitializeComponent();
|
}
|
|
/// <summary>
|
/// 绑定数据
|
/// </summary>
|
public void SetBindingData(Yw.Vmo.PhartDiagramExGraphListVmo vmo)
|
{
|
if (vmo == null || vmo.GraphList == null || !vmo.GraphList.Any())
|
{
|
this.universalViewChart1.Clear();
|
return;
|
}
|
var curveInfo = vmo.GraphList[0].GetCurveInfo();
|
var (axis_x_title, axis_y_title) = AxisTitleHelper.Get(curveInfo.Item1);
|
this.universalViewChart1.AxisXTitle = axis_x_title;
|
this.universalViewChart1.AxisYTitle = axis_y_title;
|
this.universalViewChart1.SetBindingData(curveInfo.Item3);
|
}
|
|
|
/// <summary>
|
/// 获取
|
/// </summary>
|
public Yw.Vmo.PhartDiagramExGraphListVmo Get()
|
{
|
return new ();
|
}
|
|
|
}
|
}
|