private static void loadListInternal(this ChaListControl instance, Dictionary <int, ListInfoBase> dictData, ChaListData chaListData) { foreach (KeyValuePair <int, List <string> > keyValuePair in chaListData.dictList) { ListInfoBase listInfoBase = new ListInfoBase(); if (listInfoBase.Set(chaListData.categoryNo, chaListData.distributionNo, chaListData.lstKey, keyValuePair.Value)) { if (!dictData.ContainsKey(listInfoBase.Id)) { dictData[listInfoBase.Id] = listInfoBase; int infoInt = listInfoBase.GetInfoInt(ChaListDefine.KeyType.Possess); int item = (listInfoBase.Category * CategoryMultiplier) + listInfoBase.Id; if (infoInt == 1) { var lstItemIsInit = r_lstItemIsInit.GetValue <List <int> >(instance); lstItemIsInit.Add(item); } else if (infoInt == 2) { var lstItemIsNew = r_lstItemIsNew.GetValue <List <int> >(instance); lstItemIsNew.Add(item); } } } } }
internal static void loadListInternal(this ChaListControl instance, Dictionary <int, ListInfoBase> dictData, ChaListData chaListData) { foreach (KeyValuePair <int, List <string> > keyValuePair in chaListData.dictList) { ListInfoBase listInfoBase = new ListInfoBase(); if (listInfoBase.Set(chaListData.categoryNo, chaListData.distributionNo, chaListData.lstKey, keyValuePair.Value)) { if (!dictData.ContainsKey(listInfoBase.Id)) { dictData[listInfoBase.Id] = listInfoBase; int infoInt = listInfoBase.GetInfoInt(ChaListDefine.KeyType.Possess); int item = CalculateGlobalID(listInfoBase.Category, listInfoBase.Id); instance.AddItemID(item, (byte)infoInt); } } } }