namespace HStation.WinFrmUI
|
{
|
public partial class SimulationCompressorSingleMatchingDlg : DevExpress.XtraEditors.XtraForm
|
{
|
public SimulationCompressorSingleMatchingDlg()
|
{
|
InitializeComponent();
|
this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
|
}
|
|
public event Action<HydroCompressorMatchingViewModel> ReloadDataEvent;
|
|
private HydroCompressorMatchingViewModel _CompressorMatchingView = null;
|
|
public void SetBindingData(HydroCompressorMatchingViewModel CompressorMatchingViewModel)
|
{
|
this.xtraUserControl11.SetBindingData(CompressorMatchingViewModel);
|
_CompressorMatchingView = CompressorMatchingViewModel;
|
}
|
|
//确定
|
private void btnComplete_Click(object sender, EventArgs e)
|
{
|
if (_CompressorMatchingView.MatchingDbId == null || _CompressorMatchingView.MatchingDbId == string.Empty)
|
{
|
TipFormHelper.ShowError("水池型号选择错误");
|
return;
|
}
|
|
if (_CompressorMatchingView.MatchingCurveDbId == null || _CompressorMatchingView.MatchingCurveDbId == string.Empty)
|
{
|
TipFormHelper.ShowError("曲线选择错误");
|
return;
|
}
|
else
|
{
|
_CompressorMatchingView.MatchingCurveQL = null;
|
}
|
ReloadDataEvent.Invoke(_CompressorMatchingView);
|
this.Close();
|
}
|
}
|
}
|