啊鑫
2024-07-11 afbf8700d137710713db61955879d0f5acb73738
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#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);
        }
    }
}