Ejemplo n.º 1
0
        public bool RemoveDataTable <T>()
        {
            QuikTableAttribute attr = typeof(T).GetTypeInfo().GetCustomAttribute <QuikTableAttribute>();

            if (attr == null)
            {
                throw new AttributeNotFoundException(typeof(QuikTableAttribute));
            }

            return(RemoveDataChannel(attr.Name));
        }
Ejemplo n.º 2
0
        public DataTable <T> AddDataTable <T>() where T : new()
        {
            QuikTableAttribute attr = typeof(T).GetTypeInfo().GetCustomAttribute <QuikTableAttribute>();

            if (attr == null)
            {
                throw new AttributeNotFoundException(typeof(QuikTableAttribute));
            }

            DataTable <T> table = new DataTable <T>();

            AddDataChannel(attr.Name, table);

            return(table);
        }