Exemple #1
0
 /// <summary>
 /// Creates a release folder
 /// </summary>
 /// <param name="parentFolder">TDAPIOLELib.ReleaseFolder Object</param>
 /// <param name="newFolderName">New Folder Name</param>
 /// <returns>TDAPIOLELib.ReleaseFolder Object</returns>
 public TDAPIOLELib.ReleaseFolder Create(TDAPIOLELib.ReleaseFolder parentFolder, String newFolderName)
 {
     TDAPIOLELib.ReleaseFolderFactory releaseFolderFactory = parentFolder.ReleaseFolderFactory;
     parentFolder      = releaseFolderFactory.AddItem(System.DBNull.Value);
     parentFolder.Name = newFolderName;
     parentFolder.Post();
     return(parentFolder);
 }
Exemple #2
0
        /// <summary>
        /// Creates a release folder
        /// </summary>
        /// <param name="parentFolderPath"></param>
        /// <param name="newFolderName"></param>
        /// <returns></returns>
        public TDAPIOLELib.ReleaseFolder Create(String parentFolderPath, String newFolderName)
        {
            TDAPIOLELib.ReleaseFolder releaseFolder = GetNodeObject(parentFolderPath);

            TDAPIOLELib.ReleaseFolderFactory releaseFolderFactory = releaseFolder.ReleaseFolderFactory;
            releaseFolder      = releaseFolderFactory.AddItem(System.DBNull.Value);
            releaseFolder.Name = newFolderName;
            releaseFolder.Post();
            return(releaseFolder);
        }