• 大小: 0.27M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-24
  • 语言: C#
  • 标签: 内存  通知  c  

资源简介

不停的弹出界面,每个界面做相关业务操作,间隔5秒后关闭,再将内存释放

代码片段和文件信息

using System;
using System.Data;
using System.Text;
using System.Windows.Forms;
using zoCard.ClientApp;
using zoCard.Common.UI;
using zoCard.Platform.Data;

namespace WindowsFormsApplication9
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender EventArgs e)
        {
            for (int i = 0; i < 10; i++)
            {
                ShowAlarm(“aaaaaaaaa“);
            }
        }

        private Form Owner
        {
            get
            {
                return this;
            }
        }

        /// 
        /// 显示报警信息
        /// 

        /// 
        private void ShowAlarm(string message)
        {
            if (string.IsNullOrEmpty(message))
                return;
            if (Owner.InvokeRequired)
            {
                //Owner.Invoke((System

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-08-04 15:48  WindowsFormsApplication9\
     目录           0  2018-08-04 15:48  WindowsFormsApplication9\.vs\
     目录           0  2018-08-04 15:48  WindowsFormsApplication9\.vs\WindowsFormsApplication9\
     目录           0  2018-08-04 15:48  WindowsFormsApplication9\.vs\WindowsFormsApplication9\v14\
     文件       96256  2018-09-07 08:54  WindowsFormsApplication9\.vs\WindowsFormsApplication9\v14\.suo
     目录           0  2018-09-07 08:56  WindowsFormsApplication9\WindowsFormsApplication9\
     文件        1039  2018-08-04 15:48  WindowsFormsApplication9\WindowsFormsApplication9.sln
     文件         567  2018-09-07 08:54  WindowsFormsApplication9\WindowsFormsApplication9\app.config
     目录           0  2018-08-31 18:13  WindowsFormsApplication9\WindowsFormsApplication9\bin\
     目录           0  2018-09-07 08:56  WindowsFormsApplication9\WindowsFormsApplication9\bin\Debug\
     文件       17068  2018-08-04 09:37  WindowsFormsApplication9\WindowsFormsApplication9\bin\Debug\ALARM.WAV
     文件      155648  2010-09-17 12:39  WindowsFormsApplication9\WindowsFormsApplication9\bin\Debug\dcrf32.dll
     文件       38912  2013-01-19 10:48  WindowsFormsApplication9\WindowsFormsApplication9\bin\Debug\hdrf32.dll
     文件        1812  2013-01-19 10:47  WindowsFormsApplication9\WindowsFormsApplication9\bin\Debug\hdrf32.h
     文件        4348  2013-01-19 10:48  WindowsFormsApplication9\WindowsFormsApplication9\bin\Debug\hdrf32.lib
     文件       46080  2018-09-07 08:56  WindowsFormsApplication9\WindowsFormsApplication9\bin\Debug\WindowsFormsApplication9.exe
     文件         567  2018-09-07 08:54  WindowsFormsApplication9\WindowsFormsApplication9\bin\Debug\WindowsFormsApplication9.exe.config
     文件      103936  2018-09-07 08:56  WindowsFormsApplication9\WindowsFormsApplication9\bin\Debug\WindowsFormsApplication9.pdb
     文件       22696  2018-09-07 08:56  WindowsFormsApplication9\WindowsFormsApplication9\bin\Debug\WindowsFormsApplication9.vshost.exe
     文件         567  2018-09-07 08:54  WindowsFormsApplication9\WindowsFormsApplication9\bin\Debug\WindowsFormsApplication9.vshost.exe.config
     文件         490  2018-04-12 07:35  WindowsFormsApplication9\WindowsFormsApplication9\bin\Debug\WindowsFormsApplication9.vshost.exe.manifest
     目录           0  2018-08-31 18:13  WindowsFormsApplication9\WindowsFormsApplication9\bin\Release\
     文件       11760  2018-09-07 08:56  WindowsFormsApplication9\WindowsFormsApplication9\Form1.cs
     文件        3379  2018-09-07 08:50  WindowsFormsApplication9\WindowsFormsApplication9\Form1.Designer.cs
     文件        5817  2018-09-07 08:50  WindowsFormsApplication9\WindowsFormsApplication9\Form1.resx
     文件        2204  2018-09-02 11:52  WindowsFormsApplication9\WindowsFormsApplication9\frmAlarm.cs
     文件        7837  2018-08-23 11:40  WindowsFormsApplication9\WindowsFormsApplication9\frmAlarm.designer.cs
     文件        6020  2018-08-23 11:40  WindowsFormsApplication9\WindowsFormsApplication9\frmAlarm.resx
     文件        3910  2018-09-02 11:53  WindowsFormsApplication9\WindowsFormsApplication9\frmElectronicReplacement.cs
     文件       11159  2018-08-31 18:11  WindowsFormsApplication9\WindowsFormsApplication9\frmElectronicReplacement.designer.cs
     文件        6189  2018-08-31 18:11  WindowsFormsApplication9\WindowsFormsApplication9\frmElectronicReplacement.resx
............此处省略35个文件信息

评论

共有 条评论