示例#1
0
        protected override VcProjectElement CreateChildElement(VcProjectElementType elementType)
        {
            switch (elementType)
            {
            case VcProjectElementType.Platforms:
                return(new VcProjectPlatformsElement(this, this.Root));

            case VcProjectElementType.ToolFiles:
                return(new VcProjectToolFilesElement(this, this.Root));

            case VcProjectElementType.PublishingData:
                return(new VcProjectPublishingDataElement(this, this.Root));

            case VcProjectElementType.Configurations:
                return(new VcProjectConfigurationsElement(this, this.Root));

            case VcProjectElementType.References:
                return(new VcProjectReferencesElement(this, this.Root));

            case VcProjectElementType.Files:
                return(new VcProjectFilesElement(this, this.Root));

            case VcProjectElementType.Globals:
                return(new VcProjectGlobalsElement(this, this.Root));
            }

            return(null);
        }
示例#2
0
        protected override bool IsChildElement(VcProjectElementType elementType)
        {
            switch (elementType)
            {
            case VcProjectElementType.Platforms:
                return(true);

            case VcProjectElementType.ToolFiles:
                return(true);

            case VcProjectElementType.PublishingData:
                return(true);

            case VcProjectElementType.Configurations:
                return(true);

            case VcProjectElementType.References:
                return(true);

            case VcProjectElementType.Files:
                return(true);

            case VcProjectElementType.Globals:
                return(true);
            }

            return(false);
        }
        protected override VcProjectElement CreateChildElement(VcProjectElementType elementType)
        {
            if (elementType == VcProjectElementType.Global)
            {
                return(new VcProjectGlobalElement(this, this.Root));
            }

            return(null);
        }
示例#4
0
        protected override VcProjectElement CreateChildElement(VcProjectElementType elementType)
        {
            if (elementType == VcProjectElementType.Configuration)
            {
                return(new VcProjectConfigurationElement(this, this.Root));
            }

            return(null);
        }
示例#5
0
        protected override VcProjectElement CreateChildElement(VcProjectElementType elementType)
        {
            if (elementType == VcProjectElementType.Platform)
            {
                return(new VcProjectPlatformElement(this, this.Root));
            }

            return(null);
        }
示例#6
0
        protected override bool IsChildElement(VcProjectElementType elementType)
        {
            switch (elementType)
            {
            case VcProjectElementType.File:
                return(true);

            case VcProjectElementType.Filter:
                return(true);
            }

            return(false);
        }
示例#7
0
        protected override VcProjectElement CreateChildElement(VcProjectElementType elementType)
        {
            switch (elementType)
            {
            case VcProjectElementType.ToolFile:
                return(new VcProjectToolFileElement(this, this.Root));

            case VcProjectElementType.DefaultToolFile:
                return(new VcProjectDefaultToolFileElement(this, this.Root));
            }

            return(null);
        }
示例#8
0
        protected override VcProjectElement CreateChildElement(VcProjectElementType elementType)
        {
            switch (elementType)
            {
            case VcProjectElementType.File:
                return(new VcProjectFileElement(this, this.Root));

            case VcProjectElementType.Filter:
                return(new VcProjectFilterElement(this, this.Root));
            }

            return(null);
        }
示例#9
0
        protected override VcProjectElement CreateChildElement(VcProjectElementType elementType)
        {
            switch (elementType)
            {
            case VcProjectElementType.File:
                return(new VcProjectFileElement(this, this.Root));

            case VcProjectElementType.Configuration:
                return(new VcProjectConfigurationElement(this, this.Root, "FileConfiguration"));
            }

            return(null);
        }
        protected override bool IsChildElement(VcProjectElementType elementType)
        {
            switch (elementType)
            {
            case VcProjectElementType.Tool:
                return(true);

            case VcProjectElementType.DeploymentTool:
                return(true);

            case VcProjectElementType.DebuggerTool:
                return(true);
            }

            return(false);
        }
        protected override VcProjectElement CreateChildElement(VcProjectElementType elementType)
        {
            switch (elementType)
            {
            case VcProjectElementType.ActiveXReference:
                return(new VcProjectActiveXReferenceElement(this, this.Root));

            case VcProjectElementType.AssemblyReference:
                return(new VcProjectAssemblyReferenceElement(this, this.Root));

            case VcProjectElementType.ProjectReference:
                return(new VcProjectProjectReferenceElement(this, this.Root));
            }

            return(null);
        }
        protected override bool IsChildElement(VcProjectElementType elementType)
        {
            switch (elementType)
            {
            case VcProjectElementType.ActiveXReference:
                return(true);

            case VcProjectElementType.AssemblyReference:
                return(true);

            case VcProjectElementType.ProjectReference:
                return(true);
            }

            return(false);
        }
        protected override VcProjectElement CreateChildElement(VcProjectElementType elementType)
        {
            switch (elementType)
            {
            case VcProjectElementType.Tool:
                return(new VcProjectToolElement(this, this.Root));

            case VcProjectElementType.DeploymentTool:
                return(new VcProjectDeploymentToolElement(this, this.Root));

            case VcProjectElementType.DebuggerTool:
                return(new VcProjectDebuggerToolElement(this, this.Root));
            }

            return(null);
        }
示例#14
0
 protected override bool IsChildElement(VcProjectElementType elementType)
 {
     return(elementType == VcProjectElementType.Configuration);
 }
示例#15
0
 protected override bool IsChildElement(VcProjectElementType elementType)
 {
     return(elementType == VcProjectElementType.Platform);
 }
 protected override bool IsChildElement(VcProjectElementType elementType)
 {
     return(elementType == VcProjectElementType.PublishingItem);
 }
 protected abstract VcProjectElement CreateChildElement(VcProjectElementType elementType);
 protected abstract bool IsChildElement(VcProjectElementType elementType);
示例#19
0
 public FilteringEnumerable(IList <U> list, VcProjectElementType elementType)
 {
     _backingList = list;
     _elementType = elementType;
 }
 protected override bool IsChildElement(VcProjectElementType elementType)
 {
     return(elementType == VcProjectElementType.Global);
 }