public SGData GetApprLineData(int groupid) { SGApprLineData tmpData = null; if (m_DicApprLineData.TryGetValue(groupid, out tmpData) != true) { return(null); } return(m_DicApprLineData[groupid]); }
public void SetApprLineData(HsNetWork hs, int groupid, SGData data) { SGApprLineData tmpData = null; if (m_DicApprLineData.TryGetValue(groupid, out tmpData) == true) { m_DicApprLineData.Remove(groupid); tmpData = null; } tmpData = new SGApprLineData(); tmpData.Copy(hs, data); m_DicApprLineData[groupid] = tmpData; }