コード例 #1
0
ファイル: ExpansionPackManager.cs プロジェクト: fengqk/Art
	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);
		}
	}
コード例 #2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     LoadCheckedBoxList();
     downloadManager = new DownloadManager(downloadProgressBar, downloadLabel);
 }