• 大小: 0.05M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: 多线程  

资源简介

多线程、异步

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Windows.Forms;

namespace MultiThreadAsyncDemo
{
    public partial class Form1 : Form
    {
        delegate void Task_Event(int rowIndex string status);
        public Form1()
        {
            InitializeComponent();
        }
        void ShowStatus(int rowIndex string status) 
        {
            for (int i = 0; i < this.listBox1.Items.Count; i++)
            {
                this.listBox1.Items[i] = “【“+status+“】“+this.listBox1.Items[i].ToString().Split(new string[] { “】“ } StringSplitOptions.None)[1];
            }
        }
        private void btnStart_Clic

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-12-27 23:36  MultiThreadAsyncDemo\
     目录           0  2012-12-27 23:50  MultiThreadAsyncDemo\MultiThreadAsyncDemo\
     目录           0  2012-12-27 23:36  MultiThreadAsyncDemo\MultiThreadAsyncDemo\bin\
     目录           0  2012-12-27 23:57  MultiThreadAsyncDemo\MultiThreadAsyncDemo\bin\Debug\
     文件       10240  2012-12-27 23:57  MultiThreadAsyncDemo\MultiThreadAsyncDemo\bin\Debug\MultiThreadAsyncDemo.exe
     文件       24064  2012-12-27 23:57  MultiThreadAsyncDemo\MultiThreadAsyncDemo\bin\Debug\MultiThreadAsyncDemo.pdb
     文件       22472  2012-12-27 23:36  MultiThreadAsyncDemo\MultiThreadAsyncDemo\bin\Debug\MultiThreadAsyncDemo.vshost.exe
     文件         490  2010-03-17 22:39  MultiThreadAsyncDemo\MultiThreadAsyncDemo\bin\Debug\MultiThreadAsyncDemo.vshost.exe.manifest
     文件        1538  2012-12-27 23:55  MultiThreadAsyncDemo\MultiThreadAsyncDemo\Form1.cs
     文件        3273  2012-12-27 23:45  MultiThreadAsyncDemo\MultiThreadAsyncDemo\Form1.Designer.cs
     文件        5817  2012-12-27 23:45  MultiThreadAsyncDemo\MultiThreadAsyncDemo\Form1.resx
     文件        3788  2012-12-27 23:57  MultiThreadAsyncDemo\MultiThreadAsyncDemo\MultiThreadAsyncDemo.csproj
     文件         929  2012-12-27 23:36  MultiThreadAsyncDemo\MultiThreadAsyncDemo\MultiThreadAsyncDemo.sln
     文件       34304  2012-12-27 23:43  MultiThreadAsyncDemo\MultiThreadAsyncDemo\MultiThreadAsyncDemo.v11.suo
     目录           0  2012-12-27 23:36  MultiThreadAsyncDemo\MultiThreadAsyncDemo\obj\
     目录           0  2012-12-27 23:57  MultiThreadAsyncDemo\MultiThreadAsyncDemo\obj\Debug\
     文件         863  2012-12-27 23:36  MultiThreadAsyncDemo\MultiThreadAsyncDemo\obj\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        6857  2012-12-27 23:50  MultiThreadAsyncDemo\MultiThreadAsyncDemo\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件         842  2012-12-27 23:57  MultiThreadAsyncDemo\MultiThreadAsyncDemo\obj\Debug\MultiThreadAsyncDemo.csproj.FileListAbsolute.txt
     文件         975  2012-12-27 23:57  MultiThreadAsyncDemo\MultiThreadAsyncDemo\obj\Debug\MultiThreadAsyncDemo.csproj.GenerateResource.Cache
     文件        2209  2012-12-27 23:57  MultiThreadAsyncDemo\MultiThreadAsyncDemo\obj\Debug\MultiThreadAsyncDemo.csprojResolveAssemblyReference.cache
     文件       10240  2012-12-27 23:57  MultiThreadAsyncDemo\MultiThreadAsyncDemo\obj\Debug\MultiThreadAsyncDemo.exe
     文件         180  2012-12-27 23:57  MultiThreadAsyncDemo\MultiThreadAsyncDemo\obj\Debug\MultiThreadAsyncDemo.Form1.resources
     文件       24064  2012-12-27 23:57  MultiThreadAsyncDemo\MultiThreadAsyncDemo\obj\Debug\MultiThreadAsyncDemo.pdb
     文件         180  2012-12-27 23:57  MultiThreadAsyncDemo\MultiThreadAsyncDemo\obj\Debug\MultiThreadAsyncDemo.Properties.Resources.resources
     目录           0  2012-12-27 23:36  MultiThreadAsyncDemo\MultiThreadAsyncDemo\obj\Debug\TempPE\
     文件         501  2012-12-27 23:36  MultiThreadAsyncDemo\MultiThreadAsyncDemo\Program.cs
     目录           0  2012-12-27 23:36  MultiThreadAsyncDemo\MultiThreadAsyncDemo\Properties\
     文件        1378  2012-12-27 23:36  MultiThreadAsyncDemo\MultiThreadAsyncDemo\Properties\AssemblyInfo.cs
     文件        2892  2012-12-27 23:36  MultiThreadAsyncDemo\MultiThreadAsyncDemo\Properties\Resources.Designer.cs
     文件        5612  2012-12-27 23:36  MultiThreadAsyncDemo\MultiThreadAsyncDemo\Properties\Resources.resx
............此处省略3个文件信息

评论

共有 条评论