Esempio n. 1
0
 ///<summary>
 /// The method operates on a business library (bLibrary) passed as a parameter and adds all
 /// libraries on the BIE level. These libraries include a BDT library, a BIE library, and a
 /// DOC library. The names of the generated libraries are specified in the parameters of the
 /// method.
 ///</summary>
 ///<param name="bLibrary">
 /// The bLibrary that the method operates on.
 /// </param>
 ///<param name="bdtLibraryName">
 /// The name of the BDT library created. If the parameter equals an empty string ("") then
 /// creating the library is omitted.
 /// </param>
 ///<param name="bieLibraryName">
 /// The name of the BIE library created. If the parameter equals an empty string ("") then
 /// creating the library is omitted.
 /// </param>
 ///<param name="docLibraryName">
 /// The name of the DOC library created. If the parameter equals an empty string ("") then
 /// creating the library is omitted.
 /// </param>
 private void CreateBIELibraries(IBLibrary bLibrary, string bdtLibraryName, string bieLibraryName,
                                 string docLibraryName)
 {
     if (!bdtLibraryName.Equals(""))
     {
         SendStatusChanged("Creating BDT Library.");
         bLibrary.CreateBdtLibrary(new BdtLibrarySpec {
             Name = bdtLibraryName
         });
     }
     if (!bieLibraryName.Equals(""))
     {
         SendStatusChanged("Creating BIE Library.");
         bLibrary.CreateBieLibrary(new BieLibrarySpec {
             Name = bieLibraryName
         });
     }
     if (!docLibraryName.Equals(""))
     {
         SendStatusChanged("Creating DOC Library.");
         bLibrary.CreateDocLibrary(new DocLibrarySpec {
             Name = docLibraryName
         });
     }
 }
        /// <summary>
        /// Takes the names of the libraries to be created as well as a qualifier as input and creates the
        /// libraries.
        /// </summary>
        public void GenerateLibraries()
        {
            bdtLibrary = bLibrary.CreateBdtLibrary(new BdtLibrarySpec
            {
                Name = bdtLibraryName
            });
            bieLibrary = bLibrary.CreateBieLibrary(new BieLibrarySpec
            {
                Name = bieLibraryName
            });
            docLibrary = bLibrary.CreateDocLibrary(new DocLibrarySpec
            {
                Name = docLibraryName
            });
            GenerateBdtsAndAbiesAndMas();

            GenerateRootABIE();
        }