| | |
| | | public PumpParallelAnalyDlg() |
| | | { |
| | | InitializeComponent(); |
| | | this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon; |
| | | this.pumpSerialParallelChart.LineVisible = true; |
| | | this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon; |
| | | this.pumpSerialParallelChart.SetQeVisible(false); |
| | | this.pumpParallelInfoCtrl1.SetEvent += (id, qh, qe, qp) => |
| | | { |
| | | var list = this.pumpParallelInfoCtrl1.GetRunList(); |
| | |
| | | |
| | | this.pumpParallelInfoCtrl1.SetDesignPointEvent += (q, h) => |
| | | { |
| | | this.pumpSerialParallelChart.SetDesignPt(new Point2d(q, h)); |
| | | this.pumpSerialParallelChart.SetEquipPt(new Point2d(q, h)); |
| | | }; |
| | | |
| | | this.pumpParallelInfoCtrl1.AddEvent += (vm) => |
| | |
| | | |
| | | this.pumpParallelInfoCtrl1.SetBindingData(vm_list, null); |
| | | var run_list = this.pumpParallelInfoCtrl1.GetRunList(); |
| | | var msg = SetParallel(run_list); |
| | | this.pumpSerialParallelChart.SetQeVisible(false); |
| | | var msg = SetParallel(run_list); |
| | | if (!string.IsNullOrEmpty(msg)) |
| | | { |
| | | return msg; |
| | |
| | | vm_sp.QpCalc = qp; |
| | | |
| | | vm_sp.CalcuH = total_head; |
| | | vm_sp.CalcuQ = total_flow ; |
| | | vm_sp.CalcuQ = total_flow; |
| | | |
| | | |
| | | vm_sp.Color = Color.Black; |
| | | vm_sp.IsBp = true; |
| | | vm_sp.IsDefault = true; |
| | | vm_sp.IsDefault = true; |
| | | return vm_sp; |
| | | |
| | | } |
| | |
| | | total_flow = Math.Round(total_flow, 1); |
| | | total_head = Math.Round(total_head, 1); |
| | | this.pumpParallelInfoCtrl1.SetDesignPoint(total_flow, total_head); |
| | | this.pumpSerialParallelChart.CalcWorkPointByQ(total_flow); |
| | | this.pumpSerialParallelChart.CalcWorkPointByQ(total_flow); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | |