Exemplo n.º 1
0
        public void CopyTo(W[] array, int arrayIndex)
        {
            List <W> copyList = new List <W>();

            foreach (L item in this.InnerList)
            {
                copyList.Add(BaseWrapper.Wrap <W>(item));
            }
            copyList.CopyTo(array, arrayIndex);
        }
Exemplo n.º 2
0
 public BuildToolWrapper_ FindBuildToolByName(string buildToolName)
 {
     //FindBuildToolByName is not dupported :(
     //return BaseWrapper.Wrap<BuildToolWrapper_>(this.InnerObject.FindBuildToolByName(buildToolName));
     foreach (Inventory inventory in this.InnerObject.Inventories)
     {
         foreach (BuildTool buildTool in inventory.BuildTools)
         {
             if (buildTool.Name.Equals(buildToolName.ToUpper(CultureInfo.InvariantCulture)))
             {
                 return(BaseWrapper.Wrap <BuildToolWrapper_>(buildTool));
             }
         }
     }
     return(BaseWrapper.Wrap <BuildToolWrapper_>(null));
 }
Exemplo n.º 3
0
        protected override bool OnAddNode(BaseWrapper wrapper)
        {
            ComponentWrapper component = wrapper as ComponentWrapper;

            if (component != null)
            {
                switch (component.ComponentType)
                {
                case ComponentTypeWrapper.Feature:
                case ComponentTypeWrapper.Library:
                case ComponentTypeWrapper.LibraryCategory:
                    return(true);
                }
            }
            return(false);
        }
Exemplo n.º 4
0
 public W this[int index]
 {
     get
     {
         return(BaseWrapper.Wrap <W>(this.InnerList[index]));
     }
     set
     {
         if (value != null)
         {
             this.InnerList[index] = value.InnerObject;
         }
         else
         {
             this.InnerList[index] = default(L);
         }
     }
 }
Exemplo n.º 5
0
 public static ComponentWrapper GetComponentWrapper(BaseWrapper wrapper)
 {
     if (wrapper is FeatureWrapper)
     {
         return(GetComponentWrapper(wrapper as FeatureWrapper));
     }
     if (wrapper is LibraryWrapper)
     {
         return(GetComponentWrapper(wrapper as LibraryWrapper));
     }
     if (wrapper is LibraryCategoryWrapper)
     {
         return(GetComponentWrapper(wrapper as LibraryCategoryWrapper));
     }
     if (wrapper is ProcessorWrapper)
     {
         return(GetComponentWrapper(wrapper as ProcessorWrapper));
     }
     else
     {
         Debug.Assert(false);
         return(null);
     }
 }
Exemplo n.º 6
0
 public FeatureWrapper FindFeatureByName(string name)
 {
     return(BaseWrapper.Wrap <FeatureWrapper>(this.InnerObject.FindFeatureByName(name)));
 }
Exemplo n.º 7
0
 public ISAWrapper FindISA(string ISAGuid)
 {
     return(BaseWrapper.Wrap <ISAWrapper>(this.InnerObject.FindISA(ISAGuid)));
 }
Exemplo n.º 8
0
 public ProcessorWrapper FindProcessorByName(string procName)
 {
     return(BaseWrapper.Wrap <ProcessorWrapper>(this.InnerObject.FindProcessorByName(procName)));
 }
Exemplo n.º 9
0
 public ProcessorWrapper FindProcessor(string processorGuid)
 {
     return(BaseWrapper.Wrap <ProcessorWrapper>(this.InnerObject.FindProcessor(processorGuid)));
 }
Exemplo n.º 10
0
 public LibraryWrapper FindLibraryByProject(string libraryProj)
 {
     return(BaseWrapper.Wrap <LibraryWrapper>(this.InnerObject.FindLibraryByProject(libraryProj)));
 }
Exemplo n.º 11
0
 public LibraryWrapper FindLibraryByName(string libraryName)
 {
     return(BaseWrapper.Wrap <LibraryWrapper>(this.InnerObject.FindLibraryByName(libraryName)));
 }
Exemplo n.º 12
0
 public LibraryWrapper FindLibrary(ComponentWrapper comp)
 {
     return(BaseWrapper.Wrap <LibraryWrapper>(this.InnerObject.FindLibrary(comp.InnerObject)));
 }
Exemplo n.º 13
0
 public LibraryWrapper FindLibrary(string libraryGuid)
 {
     return(BaseWrapper.Wrap <LibraryWrapper>(this.InnerObject.FindLibrary(libraryGuid)));
 }
Exemplo n.º 14
0
 protected override bool OnAddNode(BaseWrapper wrapper)
 {
     return(true);
 }
Exemplo n.º 15
0
 public FeatureWrapper FindFeature(string featureGuid)
 {
     return(BaseWrapper.Wrap <FeatureWrapper>(this.InnerObject.FindFeature(featureGuid)));//new FeatureWrapper(this.InnerObject.FindFeature(featureGuid));
 }
Exemplo n.º 16
0
 public static ComponentWrapper GetComponentWrapper(ComponentTypeWrapper type)
 {
     return(BaseWrapper.Wrap <ComponentWrapper>(new MFComponent((MFComponentType)type)));
 }
Exemplo n.º 17
0
 public BuildToolWrapper_ FindBuildTool(string buildToolGuid)
 {
     return(BaseWrapper.Wrap <BuildToolWrapper_>(this.InnerObject.FindBuildTool(buildToolGuid)));
 }
Exemplo n.º 18
0
 public AssemblyWrapper FindAssemblyByName(string asmName)
 {
     return(BaseWrapper.Wrap <AssemblyWrapper>(this.InnerObject.FindAssemblyByName(asmName)));
 }
Exemplo n.º 19
0
 public AssemblyWrapper FindAssembly(string asmGuid)
 {
     return(BaseWrapper.Wrap <AssemblyWrapper>(this.InnerObject.FindAssembly(asmGuid)));
 }
Exemplo n.º 20
0
 protected abstract bool OnAddNode(BaseWrapper wrapper);
Exemplo n.º 21
0
 public FeatureWrapper FindFeatureByProject(string featProject)
 {
     return(BaseWrapper.Wrap <FeatureWrapper>(this.InnerObject.FindFeatureByName(featProject)));
 }