| | |
| | | using DevExpress.Mvvm.POCO; |
| | | using DevExpress.XtraEditors; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | |
| | | namespace HStation.WinFrmUI |
| | | namespace HStation.WinFrmUI |
| | | { |
| | | public partial class AssetsCompressorSingleMatchingDlg : DevExpress.XtraEditors.XtraForm |
| | | { |
| | |
| | | private HydroCompressorMatchingViewModel _input = null; |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// |
| | | /// </summary> |
| | | public void SetBindingData(HydroCompressorMatchingViewModel input) |
| | | { |
| | |
| | | return; |
| | | } |
| | | _input = input; |
| | | this.assetsCompressorSingleMatchingCtrl1.SetBindingData(input.DbId); |
| | | this.assetsCompressorSingleMatchingCtrl1.SetBindingData(input.DbId, input.CurveDbId); |
| | | } |
| | | |
| | | private void GeneralOkAndCancelCtrl1_OkEvent() |
| | |
| | | return; |
| | | } |
| | | |
| | | _input.MatchingModelType = vm.Name; |
| | | _input.MatchingMaterial = vm.Material; |
| | | _input.MatchingDiameter = vm.Diameter; |
| | | _input.MinorLoss = vm.MinorLoss; |
| | | _input.MatchingModelType = vm.Vmo.Name; |
| | | _input.MatchingMaterial = vm.Vmo.Material; |
| | | _input.MatchingDiameter = vm.Vmo.Diameter; |
| | | _input.MatchingMinorLoss = vm.Vmo.MinorLoss; |
| | | _input.MatchingCurveQL = vm.MatchingCurve; |
| | | _input.MatchingDbId = vm.Vmo.ID.ToString(); |
| | | _input.MatchingCurveDbId = vm.MatchingCurveDbId; |
| | | this.ReloadDataEvent?.Invoke(_input); |
| | | this.DialogResult = DialogResult.OK; |
| | | this.Close(); |
| | | } |
| | | |
| | | } |
| | | } |