コード例 #1
0
        public SGData GetApprManageData(int groupid)
        {
            SGApprManageData tmpData = null;

            if (m_DicApprManageData.TryGetValue(groupid, out tmpData) != true)
            {
                return(null);
            }
            return(m_DicApprManageData[groupid]);
        }
コード例 #2
0
        public void SetApprManageData(HsNetWork hs, int groupid, SGData data)
        {
            SGApprManageData tmpData = null;

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

            m_DicApprManageData[groupid] = tmpData;
        }
コード例 #3
0
ファイル: HSCmdCenter.cs プロジェクト: kdy800/OpenNetLink
        public void ApprSearchAfterSend(int nRet, int groupId)
        {
            ApprSearchEvent ApprSearchResult_Event = sgPageEvent.GetApprSearchEvent(groupId);

            if (ApprSearchResult_Event != null)
            {
                PageEventArgs e = new PageEventArgs();
                e.result = nRet;
                string strMsg = "";
                if (nRet != 0)
                {
                    strMsg = SGApprManageData.FailMessage(eApprManageFail.eNone);
                }
                e.strMsg = strMsg;
                ApprSearchResult_Event(groupId, e);
            }
        }