Exemplo n.º 1
0
        public LibraryWrapper CloneLibrary(LibraryWrapper BaseLib, string NewName, string NewGroups, string NewPath, LibraryLevelWrapper NewLevel, bool NewIsStub)
        {
            Library Lib = new Library();
            BaseLib.InnerObject.CopyTo(Lib);

            Lib.Name = NewName;
            Lib.Groups = NewGroups;
            Lib.ProjectPath = NewPath;
            Lib.Level = (LibraryLevel)NewLevel;
            Lib.IsStub = NewIsStub;
            Lib.LibraryFile = Lib.Name + ".$(LIB_EXT)";
            Lib.ManifestFile = Lib.Name + ".$(LIB_EXT).manifest";
            Lib.Properties.Clear();

            return BaseWrapper.Wrap<LibraryWrapper>(Lib);
        }
Exemplo n.º 2
0
 public LibraryWrapper CreateLibrary(string Name, LibraryLevelWrapper Level, string Description, string ProjectPath, bool IsTemplate, ComponentWrapper LibraryCategory)
 {
     Library library = new Library
     {
         Name = Name,
         Level = (LibraryLevel)Level,
         Description = Description,
         ProjectPath = ProjectPath
     };
     LibraryWrapper wrapper = BaseWrapper.Wrap<LibraryWrapper>(library);
     wrapper.LibraryCategory = LibraryCategory;
     wrapper.IsTemplate = IsTemplate;
     return wrapper;
 }
Exemplo n.º 3
0
        public LibraryCategoryWrapper CreateLibraryCategory(string name, string groups, LibraryLevelWrapper level)
        {
            LibraryCategory LibCat = new LibraryCategory();
            LibCat.Name = name;
            LibCat.Groups = groups;
            LibCat.Level = (LibraryLevel)level;
            LibCat.ProjectPath = "$(SPOCLIENT)\\Framework\\Features\\" + LibCat.Name + ".libcatproj";


            m_bw.SaveLibraryCategoryProj(LibCat);

            this.m_helper.DefaultInventory.LibraryCategories.Clear();
            this.LoadDefaultLibraryCatigoriesAsync();

            return BaseWrapper.Wrap<LibraryCategoryWrapper>(LibCat);
        }
Exemplo n.º 4
0
        public LibraryWrapper CreateLibrary(string name, string groups, string path, LibraryLevelWrapper level, bool isStub)
        {
            Library Lib = new Library
            {
                Name = name,
                Groups = groups,
                ProjectPath = path,
                Level = (LibraryLevel)level,
                IsStub = isStub,
                LibraryFile = name + ".$(LIB_EXT)",
                ManifestFile = name + ".$(LIB_EXT).manifest"
            };

            return BaseWrapper.Wrap<LibraryWrapper>(Lib);
        }
Exemplo n.º 5
0
        public LibraryCategoryWrapper CloneLibraryCategory(BaseTypedWrapper<LibraryCategory> BaseLibCat, string NewName, string NewGroups, LibraryLevelWrapper NewLevel)
        {
            LibraryCategory LibCat = new LibraryCategory();
            BaseLibCat.InnerObject.CopyTo(LibCat);

            LibCat.Name = NewName;
            LibCat.Groups = NewGroups;
            LibCat.Level = (LibraryLevel)NewLevel;
            LibCat.ProjectPath = "$(SPOCLIENT)\\Framework\\Features\\" + LibCat.Name + ".libcatproj";

            //LibCat.Description = BaseLibCat.Description;
            //LibCat.Documentation = BaseLibCat.Documentation;
            //LibCat.FeatureAssociations = BaseLibCat.FeatureAssociations;
            //LibCat.Groups = NewGroups;
            //LibCat.IgnoreDefaultLibPath = BaseLibCat.IgnoreDefaultLibPath;
            //LibCat.IsTranport = BaseLibCat.IsTranport;
            //LibCat.Level = NewLevel;
            //LibCat.LibraryProjCache = BaseLibCat.LibraryProjCache;
            //LibCat.Name = NewName;
            //LibCat.ProjectPath = "$(SPOCLIENT)\\Framework\\Features\\" + LibCat.Name + ".libcatproj";
            //LibCat.Required = BaseLibCat.Required;
            //LibCat.StubLibrary = BaseLibCat.StubLibrary;
            //LibCat.Templates = BaseLibCat.Templates;

            m_bw.SaveLibraryCategoryProj(LibCat);

            this.m_helper.DefaultInventory.LibraryCategories.Clear();
            this.LoadDefaultLibraryCatigoriesAsync();

            return BaseWrapper.Wrap<LibraryCategoryWrapper>(LibCat);
        }