コード例 #1
0
        protected override void AfterModifySetOfRecordsFromCombo(string sProcedureName, string sIDs, int typeAction)
        {
            ApiControl oTc = Config.GetApIEngine();

            string [] ar = sIDs.Split(new char[] { ',' });
            int       l;

            switch (typeAction)
            {
            case 0:
                if (sProcedureName == Config.DbEnableChat || sProcedureName == Config.DbDisableChat)
                {
                    for (l = 0; l < ar.Length; l++)
                    {
                        if (ar[l] != String.Empty)
                        {
                            oTc.UpdateUserChatAllow(int.Parse(ar[l]), (sProcedureName == Config.DbEnableChat ? 1 : 0));
                        }
                    }
                }
                break;

            case 1:
            case 2:
                for (l = 0; l < ar.Length; l++)
                {
                    if (ar[l] != String.Empty)
                    {
                        oTc.UpdateUserStatus(int.Parse(ar[l]), typeAction);
                    }
                }
                break;
            }
            oTc = null;
        }