Shuxia Ning
2024-09-11 5dbe0ca9fe177aa83779ebad921b5d1d2cae6278
WinFrmUI/HStation.WinFrmUI.Assets.Core/05-ValveManage/AddValveSeriesDlg.cs
文件名从 WinFrmUI/HStation.WinFrmUI.Assets.Core/01-ValveManage/AddValveSeriesDlg.cs 修改
@@ -9,9 +9,7 @@
            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()
@@ -30,16 +28,16 @@
        {
            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();