| | |
| | | /// <returns></returns> |
| | | public string SetBindingData( |
| | | Yw.WinFrmUI.Phart.PumpVariableSpeedViewModel vm, |
| | | Yw.Geometry.Point2d design_pt) |
| | | Yw.Geometry.Point2d design_pt,double temp_head) |
| | | { |
| | | _design_pt = design_pt; |
| | | var vm_list = new List<Yw.WinFrmUI.Phart.PumpVariableSpeedInfoViewModel>(); |
| | |
| | | vm_info.Color = GetRandomColor(0); |
| | | vm_info.Calc(); |
| | | vm_list.Add(vm_info); |
| | | |
| | | |
| | | this.pumpVariableSpeedInfoCtrl1.SetBindingData(vm_list, _design_pt); |
| | | this.pumpVariableSpeedChart.Add(vm_list, _design_pt); |
| | | this.pumpVariableSpeedChart.Add(vm_list, _design_pt, temp_head); |
| | | |
| | | return string.Empty; |
| | | } |