using Microsoft.Win32; using Netch.Controllers; using Netch.Utils; using System; using System.Collections.Generic; using System.Diagnostics; using System.Drawing; using System.IO; using System.Linq; using System.ServiceProcess; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; namespace Netch.Forms { public partial class MainForm : Form { /// /// 当前状态 /// public Models.State State = Models.State.Waiting; /// /// 主控制器 /// public MainController MainController; /// /// 上一次上传的流量 /// public long LastUploadBandwidth; /// /// 上一次下载的流量 /// public long LastDownloadBandwidth; /// /// 是否第一次打开 /// public bool IsFirstOpened = true; public List