Ejemplo n.º 1
0
        /// <summary>
        /// Add the name of a known UserObjectTable to UserObjectTables
        /// </summary>
        /// <param name="mtName"></param>

        public static void AddUserObjectTable(string mtName)
        {
            mtName = mtName.Trim().ToUpper();
            if (!UserObject.IsUserObjectTableName(mtName))
            {
                return;
            }
            if (UserObjectTables == null)
            {
                UserObjectTables = new Dictionary <string, object>();
            }
            UserObjectTables[mtName] = null;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Remove the name of a known UserObjectTable from UserObjectTables
        /// </summary>
        /// <param name="mtName"></param>

        public static void RemoveUserObjectTable(string mtName)
        {
            if (!UserObject.IsUserObjectTableName(mtName))
            {
                return;
            }
            if (UserObjectTables == null)
            {
                return;
            }
            mtName = mtName.Trim().ToUpper();
            if (!UserObjectTables.ContainsKey(mtName))
            {
                return;
            }

            UserObjectTables.Remove(mtName);
            return;
        }