Esempio n. 1
0
 /// <summary>
 /// Creates a new Analysis Folder
 /// </summary>
 /// <param name="parentFolder">AnalysisItemFolder object for parent folder</param>
 /// <param name="newFolderName">new folder name</param>
 /// <returns>TDAPIOLELib.AnalysisItemFolder Object</returns>
 public TDAPIOLELib.AnalysisItemFolder CreateFolder(TDAPIOLELib.AnalysisItemFolder parentFolder, String newFolderName)
 {
     TDAPIOLELib.AnalysisItemFolder analysisItemFolder = parentFolder.AnalysisItemFolderFactory.AddItem(System.DBNull.Value);
     analysisItemFolder.Name = newFolderName;
     analysisItemFolder.Post();
     return(analysisItemFolder);
 }
Esempio n. 2
0
 /// <summary>
 /// Renames a folder
 /// </summary>
 /// <param name="analysisItemFolder">Analysis Folder Object</param>
 /// <param name="newFolderName">New folder name</param>
 /// <returns></returns>
 public Boolean RenameFolder(TDAPIOLELib.AnalysisItemFolder analysisItemFolder, String newFolderName)
 {
     analysisItemFolder.Name = newFolderName;
     analysisItemFolder.Post();
     return(true);
 }