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