| | |
| | | var vm = CreateViewModel(); |
| | | if (vm != null) |
| | | { |
| | | this.pumpVariableSpeedViewChart1.SetBindingData(vm); |
| | | this.pumpRunViewChart1.SetBindingData(vm); |
| | | } |
| | | } |
| | | |
| | |
| | | var vm = CreateViewModel(); |
| | | if (vm != null) |
| | | { |
| | | this.pumpVariableSpeedViewChart1.SetBindingData(vm); |
| | | this.pumpRunViewChart1.SetBindingData(vm); |
| | | } |
| | | } |
| | | |
| | |
| | | vm.RatedP = _pumpInfo.RatedP; |
| | | vm.RatedN = _pumpInfo.RatedN.HasValue ? _pumpInfo.RatedN.Value : 0; |
| | | vm.RatedHz = _pumpInfo.RatedHz; |
| | | vm.Color = Color.LightGray; |
| | | |
| | | var curveqh = _hydroInfo.Curves?.Find(x => x.Code == _pumpInfo.CurveQH); |
| | | if (curveqh != null) |
| | |
| | | vmItem.Id = working.ID.ToString(); |
| | | vmItem.Name = working.Name; |
| | | vmItem.Hz = workingPumpInfo.CurrentHz; |
| | | vmItem.Color = HydroPumpCurveColorHelper.GetRandomColor(_workingList.IndexOf(working)); |
| | | if (_pumpInfo.RatedN.HasValue) |
| | | { |
| | | var speedRatio = workingPumpInfo.CurrentHz / _pumpInfo.RatedHz; |