Example #1
0
	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);
		}
	}
Example #2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     LoadCheckedBoxList();
     downloadManager = new DownloadManager(downloadProgressBar, downloadLabel);
 }