public FBlockInfo GetFBlockInfo(string pjblock) { FBlockInfo fBlockInfo = null; if (BlockInfoDic.TryGetValue(pjblock, out fBlockInfo)) { return(fBlockInfo); } return(null); }
public DictionaryInfo GetGtextInfo(string pjblock, string key) { FBlockInfo fBlockInfo = null; DictionaryInfo dictionaryInfo = null; if (BlockInfoDic.TryGetValue(pjblock, out fBlockInfo)) { if (fBlockInfo.Dictionary.TryGetValue(key, out dictionaryInfo)) { return(dictionaryInfo); } } return(null); }
public FBlockInfo GetBlockInfoDic(string owner, string block) { string pjblock = Utility.Text.Format("{0}{1}", owner, block); FBlockInfo fBlockInfo = null; if (!BlockInfoDic.TryGetValue(pjblock, out fBlockInfo)) { fBlockInfo = new FBlockInfo(); fBlockInfo.Owner = owner; fBlockInfo.Block = block; fBlockInfo.BlockStatus = BlockStatus.Loading; BlockInfoDic.Add(pjblock, fBlockInfo); } return(fBlockInfo); }