using DevExpress.XtraEditors;
|
using Gs.DevApp.ToolBox;
|
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;
|
|
namespace Gs.DevApp.UserControl
|
{
|
public partial class showZhongTai : DevExpress.XtraEditors.XtraForm
|
{
|
public showZhongTai()
|
{
|
InitializeComponent();
|
btnSave.Click += (s, e) =>
|
{
|
string str = comZt.SelectedText.Trim();
|
if (str.Length == 0)
|
{
|
Gs.DevApp.ToolBox.MsgHelper.ShowError("请选择状态!");
|
return;
|
}
|
UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringSingle = str });
|
Close();
|
};
|
btnCancel.Click += (s, e) =>
|
{
|
this.Close();
|
};
|
}
|
|
/// <summary>
|
/// 选择后的回调事件
|
/// </summary>
|
public event EventHandler<UpdateParentEventArgs> UpdateParent;
|
}
|
}
|