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;
|
using Yw.Vmo;
|
|
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;
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public event Action<PhartDiagramExGraphListVmo> ReloadDataEvent;
|
|
private PhartDiagramExGraphListVmo _vmo = null;
|
|
/// <summary>
|
/// 绑定数据
|
/// </summary>
|
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();
|
}
|
|
}
|
}
|