Example #1
0
        protected CustomListView(CustomListViewType customListViewType, List<DatabaseClass> scripts, List<string> exProps = null)
        {
            switch (customListViewType)
            {
                case CustomListViewType.CustomListViewCondition:
                    _pinfo = typeof(Condition).GetProperties();
                    break;
                case CustomListViewType.CustomListViewSmartScript:
                    _pinfo = typeof(SmartScript).GetProperties();
                    break;
            }

            _scripts = scripts;
            _excludedProperties = exProps ?? new List<string>();
            _customListViewType = customListViewType;

            Init();
        }
Example #2
0
        protected CustomListView(CustomListViewType customListViewType, List <DatabaseClass> scripts, List <string> exProps = null)
        {
            switch (customListViewType)
            {
            case CustomListViewType.CustomListViewCondition:
                _pinfo = typeof(Condition).GetProperties();
                break;

            case CustomListViewType.CustomListViewSmartScript:
                _pinfo = typeof(SmartScript).GetProperties();
                break;
            }

            _scripts            = scripts;
            _excludedProperties = exProps ?? new List <string>();
            _customListViewType = customListViewType;

            Init();
        }