private void AddAssetDetailDataFromGithub(GithubAssetDetailData item) { foreach (KeyValuePair <string, string> pair in item.AssetContentString) { string key = pair.Key; string content = pair.Value; bool isText = (IsContainImage(content) == false); AssetDetailsEntryObject obj = new AssetDetailsEntryObject(content, key, content, isText); _AssetDetailList.Add(obj); } }
private void OnGithubFetchingAssetDetailsCompleted(object sender, XMLParsingEventArgs args) { _AssetListDataDetails.Clear(); if (args._ItemDataClass != null) { foreach (ItemDataClass item in args._ItemDataClass) { GithubAssetDetailData assetDetailData = item as GithubAssetDetailData; _AssetListDataDetails.Add(assetDetailData); } } if (_bIsLogin) { GithubFetchingDataForAssetDataList(); } else { SetLoading(false); } }