DotNet.WinForm/CommonModule/Utilities/LoadingUtil.cs
(完整代码) 1KB//--------------------------------------------------------------------
// All Rights Reserved , Copyright (C) 2014 , Hairihan TECH, Ltd.
//--------------------------------------------------------------------
using System.Windows.Forms;
using DevExpress.XtraSplashScreen;
namespace DotNet.WinForm
{
public class LoadingUtil
{
public static void StopLoading()
{
SplashScreenManager.CloseForm(false);
}
public static void ShowWaitLoading(Form frm)
{
//SplashScreenManager.ShowForm(frm, typeof(WaitForm1), true, true, false);
}
public static void ShowWaitLoading()
{
SplashScreenManager.ShowForm(null, typeof(WaitForm), true, true, false);
}
public static void ShowStartLoading()
{
SplashScreenManager.ShowForm(typeof(SplashScreen), true, true);
}
public static DialogResult ShowInformationMessage(string statusMessage, string appMessage)
{
return ShowMessage(statusMessage, appMessage, MessageBoxButtons.OK, MessageBoxIcon.Information);
}
public static DialogResult ShowStopMessage(string statusMessage, string appMessage)
{
return ShowMessage(statusMessage, appMessage, MessageBoxButtons.OK, MessageBoxIcon.Stop);
}
public static DialogResult ShowQuestionMessage(string statusMessage, string appMessage)
{
return ShowMessage(statusMessage, appMessage, MessageBoxButtons.YesNo, MessageBoxIcon.Question);
}
private static DialogResult ShowMessage(string statusMessage, string appMessage, MessageBoxButtons mbb, MessageBoxIcon mbi)
{
StopLoading();
return DevExpress.XtraEditors.XtraMessageBox.Show(statusMessage, appMessage, mbb, mbi);
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
