示例#1
0
        AddFile(
            VSSettingsGroup sourceGroup)
        {
            var path = sourceGroup.RelativeDirectory.ToString();

            this.AddFilters(sourceGroup.Module, path);
            var filter = this.Filters[path];

            if (filter.Any(item =>
            {
                lock (item.Include)
                {
                    if (!item.Include.IsParsed)
                    {
                        item.Include.Parse();
                    }
                }
                return(item.Include.ToString() == sourceGroup.Include.ToString());
            }))
            {
                return;
            }
            var newGroup = new VSSettingsGroup(this.Project, sourceGroup.Module, sourceGroup.Group, sourceGroup.Include);

            newGroup.AddSetting("Filter", sourceGroup.RelativeDirectory);
            filter.AddUnique(newGroup);
        }
示例#2
0
 AddFile(
     VSSettingsGroup sourceGroup)
 {
     this.AddFilters(sourceGroup.Module, sourceGroup.RelativeDirectory);
     var filter = this.Filters[sourceGroup.RelativeDirectory.Parse()];
     if (filter.Any(item => item.Include.Parse() == sourceGroup.Include.Parse()))
     {
         return;
     }
     var newGroup = new VSSettingsGroup(sourceGroup.Module, sourceGroup.Group, sourceGroup.Include);
     newGroup.AddSetting("Filter", sourceGroup.RelativeDirectory);
     filter.AddUnique(newGroup);
 }
示例#3
0
        AddFile(
            VSSettingsGroup sourceGroup)
        {
            this.AddFilters(sourceGroup.Module, sourceGroup.RelativeDirectory);
            var filter = this.Filters[sourceGroup.RelativeDirectory.Parse()];

            if (filter.Any(item => item.Include.Parse() == sourceGroup.Include.Parse()))
            {
                return;
            }
            var newGroup = new VSSettingsGroup(sourceGroup.Module, sourceGroup.Group, sourceGroup.Include);

            newGroup.AddSetting("Filter", sourceGroup.RelativeDirectory);
            filter.AddUnique(newGroup);
        }