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