Example #1
0
        /// <summary>
        /// Register table in list
        /// </summary>
        /// <param name="table">Table object</param>
        internal void RegisterTable(VistaDBTable table)
        {
            if (tableList.IndexOf(table) >= 0)
            {
                return;
            }

            tableList.Add(table);
        }
Example #2
0
        /// <summary>
        /// Unregister table in list
        /// </summary>
        /// <param name="table"></param>
        internal void UnregisterTable(VistaDBTable table)
        {
            if (this.tableList != null)
            {
                int index = tableList.IndexOf(table);

                if (index < 0)
                {
                    return;
                }

                tableList.RemoveAt(index);
            }
        }