using DevExpress.XtraEditors; using HStation.Vmo; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using Yw; namespace HStation.WinFrmUI { public partial class EditAssetsExchangerCurveQLDlg : DevExpress.XtraEditors.XtraForm { public EditAssetsExchangerCurveQLDlg() { InitializeComponent(); this.IconOptions.Icon = Yw.WinFrmUI.GlobalParas.AppIcon; this.layoutControl1.SetupLayoutControl(); this.generalOkAndCancelCtrl1.OkEvent += GeneralOkAndCancelCtrl1_OkEvent; } /// /// /// public event Action ReloadDataEvent; private PhartDiagramExGraphListVmo _vmo = null; /// /// 绑定数据 /// public void SetBindingData(PhartDiagramExGraphListVmo vmo) { if (vmo == null) { return; } _vmo = vmo; } //确定 private void GeneralOkAndCancelCtrl1_OkEvent() { if (_vmo == null) { return; } this.ReloadDataEvent?.Invoke(_vmo); this.DialogResult = DialogResult.OK; this.Close(); } } }