Пример #1
0
        public SGData GetDetailData(int groupid)
        {
            SGDetailData tmpData = null;

            if (m_DicDetailData.TryGetValue(groupid, out tmpData) != true)
            {
                return(null);
            }
            return(m_DicDetailData[groupid]);
        }
Пример #2
0
        public void SetDetailData(HsNetWork hs, int groupid, SGData data)
        {
            SGDetailData tmpData = null;

            if (m_DicDetailData.TryGetValue(groupid, out tmpData) == true)
            {
                m_DicDetailData.Remove(groupid);
                tmpData = null;
            }
            tmpData = new SGDetailData();
            tmpData.Copy(hs, data);

            m_DicDetailData[groupid] = tmpData;
        }