• 大小: 49.80M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: web  桌面  demo  进度  

资源简介

适用于业务执行时间较长时,给用户的友好 等待提示

资源截图

代码片段和文件信息

using System;
using System.Windows.Forms;
using System.Threading;

namespace WaitForm
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        int times;
        private void ExecWaitForm()
        {
            try
            {
                WaitFormService.Show();
                times++;
                for (int i = 0; i < 10000; i++)
                {
                    WaitFormService.SetText(times.ToString() + “正在执行 ,请耐心等待。。。“ + i.ToString());
                }
                WaitFormService.Close();
                if (times == 3)
                {
                    button1.Enabled = true;
                    return;
                }
                ExecWaitForm();
      

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-11-03 13:14  等待提示demo\
     目录           0  2016-11-02 11:04  等待提示demo\WaitForm\
     目录           0  2016-11-02 11:04  等待提示demo\WaitForm\.vs\
     目录           0  2016-11-02 11:04  等待提示demo\WaitForm\.vs\WaitForm\
     目录           0  2016-11-02 11:04  等待提示demo\WaitForm\.vs\WaitForm\v14\
     文件       50176  2016-11-03 11:34  等待提示demo\WaitForm\.vs\WaitForm\v14\.suo
     目录           0  2016-11-02 20:07  等待提示demo\WaitForm\WaitForm\
     文件         991  2016-11-02 11:04  等待提示demo\WaitForm\WaitForm.sln
     文件         189  2016-11-02 11:04  等待提示demo\WaitForm\WaitForm\App.config
     目录           0  2016-11-02 12:23  等待提示demo\WaitForm\WaitForm\bin\
     目录           0  2016-11-02 20:07  等待提示demo\WaitForm\WaitForm\bin\Debug\
     文件       18944  2016-11-02 20:07  等待提示demo\WaitForm\WaitForm\bin\Debug\WaitForm.exe
     文件         189  2016-11-02 11:04  等待提示demo\WaitForm\WaitForm\bin\Debug\WaitForm.exe.config
     文件       30208  2016-11-02 20:07  等待提示demo\WaitForm\WaitForm\bin\Debug\WaitForm.pdb
     文件       22696  2016-11-03 11:28  等待提示demo\WaitForm\WaitForm\bin\Debug\WaitForm.vshost.exe
     文件         189  2016-11-02 11:04  等待提示demo\WaitForm\WaitForm\bin\Debug\WaitForm.vshost.exe.config
     文件         490  2013-06-18 20:28  等待提示demo\WaitForm\WaitForm\bin\Debug\WaitForm.vshost.exe.manifest
     目录           0  2016-11-02 12:23  等待提示demo\WaitForm\WaitForm\bin\Release\
     文件        1213  2016-11-02 20:07  等待提示demo\WaitForm\WaitForm\Form1.cs
     文件        2030  2016-11-02 11:06  等待提示demo\WaitForm\WaitForm\Form1.Designer.cs
     文件        5817  2016-11-02 11:06  等待提示demo\WaitForm\WaitForm\Form1.resx
     目录           0  2016-11-02 11:04  等待提示demo\WaitForm\WaitForm\obj\
     目录           0  2016-11-02 20:07  等待提示demo\WaitForm\WaitForm\obj\Debug\
     文件        1464  2016-11-02 20:03  等待提示demo\WaitForm\WaitForm\obj\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        7452  2016-11-02 20:41  等待提示demo\WaitForm\WaitForm\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件           0  2016-11-02 11:04  等待提示demo\WaitForm\WaitForm\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
     文件           0  2016-11-02 11:04  等待提示demo\WaitForm\WaitForm\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
     文件           0  2016-11-02 11:04  等待提示demo\WaitForm\WaitForm\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
     目录           0  2016-11-02 11:05  等待提示demo\WaitForm\WaitForm\obj\Debug\TempPE\
     文件        4096  2016-11-02 11:41  等待提示demo\WaitForm\WaitForm\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
     文件         848  2016-11-03 11:28  等待提示demo\WaitForm\WaitForm\obj\Debug\WaitForm.csproj.FileListAbsolute.txt
............此处省略946个文件信息

评论

共有 条评论