private ExpansionPackManager() { m_assetsPath = EntryPointParam.AssetsPath; m_downloadManager = new Downloader.DownloadManager(GetDownloadTempDir()); m_downloadManager.TaskEndEvent += OnDownloadTaskEnd; //load expansion config m_allInfo = PlatformConfig.GetExpansionPackInfoList(); //load expansion status LoadRecord(); foreach (var packInfo in m_allInfo) { ExpansionPackRecord record; if (!m_packRecordMap.TryGetValue(packInfo.id, out record)) m_downloadManager.AddTask(packInfo.md5, packInfo.url); } }
private void Form1_Load(object sender, EventArgs e) { LoadCheckedBoxList(); downloadManager = new DownloadManager(downloadProgressBar, downloadLabel); }