using System;
|
using System.Collections.Generic;
|
using System.ComponentModel;
|
using System.Drawing;
|
using System.Data;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using System.Windows.Forms;
|
|
namespace DPumpHydr.OpenFwUI.Volute.截面面积
|
{
|
public partial class SectAreaDockPanel: UserControl
|
{
|
public SectAreaDockPanel()
|
{
|
InitializeComponent();
|
this.chart.OnRefreshSingleSectArea += (ss, ee) =>
|
{
|
if (OnRefreshSingleSectArea != null)
|
{
|
OnRefreshSingleSectArea.Invoke(ss, ee);
|
}
|
};
|
DPumpHydr.OpenFwUI.Volute.SectionBundleInfo a = new DPumpHydr.OpenFwUI.Volute.SectionBundleInfo()
|
{
|
Area = new List<double>() { 0, 200, 300, 400, 500, 600, 700, 800, 900,0,0 }
|
};
|
SetArea18(a);
|
}
|
|
public Action<int, double> OnRefreshSingleSectArea = null;
|
public void RefreshControl()
|
{
|
chart.RefreshControl();
|
}
|
|
public void SetArea18(DPumpHydr.OpenFwUI.Volute.SectionBundleInfo bundle)
|
{
|
if (bundle == null) return;
|
|
List<double> areas = new List<double>();
|
for (int i = 0; i < 9; i++)
|
{
|
areas.Add(bundle.Area[i]);
|
}
|
chart.SetArea18(areas);
|
}
|
//更新单个断面
|
public void SetArea18(DPumpHydr.OpenFwUI.Volute.SectionShapePara para)
|
{
|
if (para == null) return;
|
|
chart.SetArea18(para);
|
}
|
public void SetArea9(double area)
|
{
|
chart.SetArea9(area);
|
}
|
public void SetArea10(double area)
|
{
|
chart.SetArea10(area);
|
}
|
public void SetAreaOutletDia(double area)
|
{
|
chart.SetAreaOutletDia(area);
|
}
|
}
|
}
|