Ejemplo n.º 1
0
        public SGData GetTransManageData(int groupid)
        {
            SGTransManageData tmpData = null;

            if (m_DicTransManageData.TryGetValue(groupid, out tmpData) != true)
            {
                return(null);
            }
            return(m_DicTransManageData[groupid]);
        }
Ejemplo n.º 2
0
        public void SetTransManageData(HsNetWork hs, int groupid, SGData data)
        {
            SGTransManageData tmpData = null;

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

            m_DicTransManageData[groupid] = tmpData;
        }
Ejemplo n.º 3
0
        public void TransSearchAfterSend(int nRet, int groupId)
        {
            TransSearchEvent TransSearchResult_Event = sgPageEvent.GetTransSearchEvent(groupId);

            if (TransSearchResult_Event != null)
            {
                PageEventArgs e = new PageEventArgs();
                e.result = nRet;
                string strMsg = "";
                if (nRet != 0)
                {
                    strMsg = SGTransManageData.FailMessage(eTransManageFail.eNone);
                }
                e.strMsg = strMsg;
                TransSearchResult_Event(groupId, e);
            }
        }