文件名从 WinFrmUI/HStation.WinFrmUI.Assets.Core/01-ValveManage/AddValveSeriesDlg.cs 修改 |
| | |
| | | InitializeComponent(); |
| | | } |
| | | |
| | | public event Func<Vmo.ValveSeries, Task<bool>> ReloadDataEvent = null; |
| | | |
| | | private Yw.BLL.SysCatalog _bll = null; |
| | | public event Func<Vmo.ValveSeriesVmo, Task<bool>> ReloadDataEvent = null; |
| | | |
| | | //鏁版嵁楠岃瘉 |
| | | private bool Valid() |
| | |
| | | { |
| | | if (!Valid()) |
| | | return; |
| | | var model = new Vmo.ValveSeries(); |
| | | var model = new Vmo.ValveSeriesVmo(); |
| | | model.Name = NameTextEdit.Text; |
| | | |
| | | if (await this.ReloadDataEvent.Invoke(model)) |
| | | { |
| | | MessageBoxHelper.ShowSuccess("娣诲姞鎴愬姛!"); |
| | | TipFormHelper.ShowSucceed("娣诲姞鎴愬姛!"); |
| | | } |
| | | else |
| | | { |
| | | MessageBoxHelper.ShowError("娣诲姞澶辫触!"); |
| | | TipFormHelper.ShowSucceed("娣诲姞澶辫触!"); |
| | | } |
| | | this.DialogResult = DialogResult.OK; |
| | | this.Close(); |