namespace Yw.WinFrmUI
{
///
///
///
public partial class SetHydroWorkingBottomCtrl : DevExpress.XtraEditors.XtraUserControl
{
///
///
///
public SetHydroWorkingBottomCtrl()
{
InitializeComponent();
this.layoutControl1.SetupLayoutControl();
}
///
/// 确定
///
public event Action OkEvent;
///
///
///
public Size ButtonOkMinSize
{
get { return this.itemForOkButton.MinSize; }
set { this.itemForOkButton.MinSize = value; }
}
///
///
///
public Size ButtonOkMaxSize
{
get { return this.itemForOkButton.MaxSize; }
set { this.itemForOkButton.MaxSize = value; }
}
///
///
///
public Size ButtonCancelMinSize
{
get { return this.itemForCancelButton.MinSize; }
set { this.itemForCancelButton.MinSize = value; }
}
///
///
///
public Size ButtonCancelMaxSize
{
get { return this.itemForCancelButton.MaxSize; }
set { this.itemForCancelButton.MaxSize = value; }
}
//确定
private void btnOk_Click(object sender, EventArgs e)
{
this.OkEvent?.Invoke();
}
}
}