1、异步操作类
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.Remoting.Messaging;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using static System.Windows.Forms.AxHost;namespace EapWindowApp
{internal class AsyncClass{//进度委托事件public delegate void ProgressChangedEventHandler(ProgressChangedEventArgs e);public event ProgressChangedEventHandler ProgressChanged;//完成委托事件public delegate void OperatingCompletedEventHandler(object sender,AsyncCompletedEventArgs e);public event OperatingCompletedEventHandler OperatingCompleted;//异步委托private delegate void OperatingHandler(AsyncOperation asyncOperation);private SendOrPostCallback OnProgressChangedDelegate;private SendOrPostCallback OnOperatingCompletedDelegate;/// <summary>/// 构造函数/// </summary>public AsyncClass() {