namespace HStation.WinFrmUI
|
{
|
public partial class SimulationSprinklerSingleMatchingDlg : DevExpress.XtraEditors.XtraForm
|
{
|
public SimulationSprinklerSingleMatchingDlg()
|
{
|
InitializeComponent();
|
this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon;
|
}
|
|
public event Action<HydroNozzleMatchingViewModel> ReloadDataEvent;
|
|
private HydroNozzleMatchingViewModel _sprinklerMatchingView = null;
|
|
public void SetBindingData(HydroNozzleMatchingViewModel NozzleMatchingViewModel)
|
{
|
this.sprinklerSingleMatchingForm1.SetBindingData(NozzleMatchingViewModel);
|
_sprinklerMatchingView = NozzleMatchingViewModel;
|
}
|
|
//确定
|
private void btnComplete_Click(object sender, EventArgs e)
|
{
|
ReloadDataEvent.Invoke(_sprinklerMatchingView);
|
this.Close();
|
}
|
}
|
}
|