示例#1
0
        /// <summary>
        /// Reset to the default resource config file
        /// </summary>
        private void SetDefault()
        {
            var        name = this.Parent.Name;
            RoleFilter role;

            if (Enum.TryParse(name, out role))
            {
                var defaultFilter = OutPutFilters.GetDefaults(role);
                if (defaultFilter != null)
                {
                    Filter.Copy(defaultFilter);
                    Init(Filter);
                }
            }
        }
示例#2
0
        /// <summary>
        /// Reset to the default resource config file
        /// </summary>
        private void SetDefault()
        {
            var        name = Parent.Name;
            RoleFilter role;

            if (!Enum.TryParse(name, out role))
            {
                return;
            }
            var defaultFilter = OutPutFilters.GetDefaults(role);

            if (defaultFilter == null)
            {
                return;
            }
            _filter.Copy(defaultFilter);
            Init(_filter);
        }