private void 播放窗口退出事件(object sender, EventArgs e)
 {
     NewThreadTask.Run(() =>
     {
         MMPU.当前直播窗口数量--;
         PlayW.MainWindow p = (PlayW.MainWindow)sender;
         playList1.Remove(p);
         foreach (var item in MMPU.DownList)
         {
             if (item.DownIofo.事件GUID == p.DD.DownIofo.事件GUID)
             {
                 item.DownIofo.WC.CancelAsync();
                 item.DownIofo.载状态  = false;
                 item.DownIofo.备注   = "播放串口关闭,停止下载";
                 item.DownIofo.结束时间 = Convert.ToInt32((DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0, 0)).TotalSeconds);
                 if (item.DownIofo.是否保存)
                 {
                 }
                 else
                 {
                     MMPU.文件删除委托(p.DD.DownIofo.文件保存路径);
                 }
                 break;
             }
         }
     });
 }
        public void 打开直播列表(Downloader DL)
        {
            if (DL != null)
            {
                DL.DownIofo.播放状态    = true;
                DL.DownIofo.是否是播放任务 = true;
                PlayW.MainWindow PlayWindow = new PlayW.MainWindow(DL, MMPU.默认音量, new SolidColorBrush(Color.FromArgb(0xFF, Convert.ToByte(MMPU.默认弹幕颜色.Split(',')[1], 16), Convert.ToByte(MMPU.默认弹幕颜色.Split(',')[2], 16), Convert.ToByte(MMPU.默认弹幕颜色.Split(',')[3], 16))), new SolidColorBrush(Color.FromArgb(0xFF, Convert.ToByte(MMPU.默认字幕颜色.Split(',')[1], 16), Convert.ToByte(MMPU.默认字幕颜色.Split(',')[2], 16), Convert.ToByte(MMPU.默认字幕颜色.Split(',')[3], 16))), MMPU.默认弹幕大小, MMPU.默认字幕大小, MMPU.播放器默认宽度, MMPU.播放器默认高度);
                PlayWindow.Closed += 播放窗口退出事件;
                PlayWindow.Show();
                //PlayWindow.BossKey += 老板键事件;
                playList1.Add(PlayWindow);



                // PlayW.MainWindow PlayWindow = new PlayW.MainWindow(DL, MMPU.默认音量, 弹幕颜色, 字幕颜色, MMPU.默认弹幕大小, MMPU.默认字幕大小, MMPU.PlayWindowW, MMPU.PlayWindowH);



                // MMPU.ClearMemory();
            }
            else
            {
                System.Windows.MessageBox.Show("Downloader结构体不能为Null,出现了未知的错误!");
                return;
            }
        }