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

资源简介


资源截图

代码片段和文件信息

using System;
using System.ComponentModel;
using System.Drawing;
using System.Threading;
using System.Windows.Forms;

namespace drawRegionByThread
{
    public partial class Form1 : Form
    {

        Thread drawThread = null;

        ThreadState drawThreadState = ThreadState.Unstarted;

        int x y size = 4; bool sub = false;

        void pDrawFuntion()
        {
            while (true)
            {
                if (ThreadState.Stopped == drawThreadState) { break; }
                if (ThreadState.StopRequested == drawThreadState) { drawThreadState = ThreadState.Stopped; continue; }
                if (ThreadState.SuspendRequested == drawThreadState) { continue; }
                if (ThreadState.Suspended == drawThreadState) { drawThreadState = Thread

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-06-04 19:10  drawRegionByThread\
     目录           0  2018-06-04 19:09  drawRegionByThread\.vs\
     目录           0  2018-06-04 19:09  drawRegionByThread\.vs\drawRegionByThread\
     目录           0  2018-06-04 19:10  drawRegionByThread\.vs\drawRegionByThread\v14\
     文件       47104  2018-06-04 22:35  drawRegionByThread\.vs\drawRegionByThread\v14\.suo
     目录           0  2018-06-04 22:14  drawRegionByThread\Debug\
     文件        9216  2018-06-04 22:35  drawRegionByThread\Debug\drawRegionByThread.exe
     文件         184  2018-06-04 19:10  drawRegionByThread\Debug\drawRegionByThread.exe.config
     文件       22016  2018-06-04 22:35  drawRegionByThread\Debug\drawRegionByThread.pdb
     文件       22688  2018-06-04 22:35  drawRegionByThread\Debug\drawRegionByThread.vshost.exe
     文件         184  2018-06-04 19:10  drawRegionByThread\Debug\drawRegionByThread.vshost.exe.config
     文件         490  2018-04-12 07:35  drawRegionByThread\Debug\drawRegionByThread.vshost.exe.manifest
     目录           0  2018-06-04 22:35  drawRegionByThread\drawRegionByThread\
     文件         184  2018-06-04 19:10  drawRegionByThread\drawRegionByThread\App.config
     目录           0  2018-06-04 19:09  drawRegionByThread\drawRegionByThread\bin\
     目录           0  2018-06-04 19:10  drawRegionByThread\drawRegionByThread\bin\Debug\
     文件         184  2018-06-04 19:10  drawRegionByThread\drawRegionByThread\bin\Debug\drawRegionByThread.exe.config
     文件         184  2018-06-04 19:10  drawRegionByThread\drawRegionByThread\bin\Debug\drawRegionByThread.vshost.exe.config
     文件         490  2018-04-12 07:35  drawRegionByThread\drawRegionByThread\bin\Debug\drawRegionByThread.vshost.exe.manifest
     文件        3635  2018-06-04 22:28  drawRegionByThread\drawRegionByThread\drawRegionByThread.csproj
     文件        2560  2018-06-04 22:27  drawRegionByThread\drawRegionByThread\drawRegionByThread.suo
     文件        2933  2018-06-04 22:35  drawRegionByThread\drawRegionByThread\Form1.cs
     文件        1452  2018-06-04 22:13  drawRegionByThread\drawRegionByThread\Form1.Designer.cs
     文件        5817  2018-06-04 22:07  drawRegionByThread\drawRegionByThread\Form1.resx
     目录           0  2018-06-04 19:09  drawRegionByThread\drawRegionByThread\obj\
     目录           0  2018-06-04 22:29  drawRegionByThread\drawRegionByThread\obj\Debug\
     文件        1164  2018-06-04 19:10  drawRegionByThread\drawRegionByThread\obj\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        6280  2018-06-04 22:28  drawRegionByThread\drawRegionByThread\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件         913  2018-06-04 22:35  drawRegionByThread\drawRegionByThread\obj\Debug\drawRegionByThread.csproj.FileListAbsolute.txt
     文件        1012  2018-06-04 22:29  drawRegionByThread\drawRegionByThread\obj\Debug\drawRegionByThread.csproj.GenerateResource.Cache
     文件        1302  2018-06-04 22:29  drawRegionByThread\drawRegionByThread\obj\Debug\drawRegionByThread.csprojResolveAssemblyReference.cache
............此处省略17个文件信息

评论

共有 条评论