#region
using System.Windows.Forms;
using CSFrameworkV5.Common;
using CSFrameworkV5.Library.CommonForms;
using DevExpress.XtraSplashScreen;
#endregion
namespace CSFrameworkV5.Library
{
///
/// frmWaitForm界面的调用类,能显示动态图标
///
public class frmWaitingEx
{
///
/// 隐藏等待窗体
///
///
public static void HideMe(Form owner = null)
{
CCursor.ShowDefaultCursor();
SplashScreenManager.CloseForm(false, 0, owner);
}
///
/// 显示等待窗体
///
/// 父级窗体
/// 显示消息
public static void ShowMe(Form owner, string message)
{
CCursor.ShowWaitCursor();
SplashScreenManager.ShowForm(owner, typeof(frmWaitForm), true, true,
false);
SplashScreenManager.Default.SetWaitFormDescription(message);
}
///
/// 显示等待窗体
///
/// 父级窗体
public static void ShowMe(Form owner = null)
{
CCursor.ShowWaitCursor();
SplashScreenManager.ShowForm(owner, typeof(frmWaitForm), true, true,
false);
}
}
}