public TDAPIOLELib.QCResourceFolder CreateFolder(TDAPIOLELib.QCResourceFolder ParentFolder, String NewFolderName) { TDAPIOLELib.QCResourceFolderFactory qCResourceFolderFactory = ParentFolder.QCResourceFolderFactory; TDAPIOLELib.QCResourceFolder qCResourceFolder = qCResourceFolderFactory.AddItem(System.DBNull.Value); qCResourceFolder.Name = NewFolderName; qCResourceFolder.Post(); return(qCResourceFolder); }
public System.Collections.Generic.List <String> GetChildFolderNames(TDAPIOLELib.QCResourceFolder qCResourceFolder) { TDAPIOLELib.QCResourceFolderFactory qCResourceFolderFactory = qCResourceFolder.QCResourceFolderFactory; System.Collections.Generic.List <String> list = new System.Collections.Generic.List <string>(); foreach (TDAPIOLELib.QCResourceFolder folder in qCResourceFolderFactory.NewList("")) { list.Add(folder.Name); } return(list); }
public TDAPIOLELib.QCResourceFolder GetFolderFromPath(String FolderPath) { TDAPIOLELib.QCResourceFolderFactory qCResourceFolderFactory = tDConnection.QCResourceFolderFactory; TDAPIOLELib.TDFilter tDFilter = qCResourceFolderFactory.Filter; TDAPIOLELib.QCResourceFolder qCResourceFolder = tDConnection.QCResourceFolderFactory[1]; foreach (String OFolder in FolderPath.Split('\\')) { tDFilter = qCResourceFolderFactory.Filter; tDFilter["RFO_NAME"] = OFolder; qCResourceFolder = tDFilter.NewList()[1]; qCResourceFolderFactory = qCResourceFolder.QCResourceFolderFactory; } return(qCResourceFolder); }
public TDAPIOLELib.List GetChildFolderList(TDAPIOLELib.QCResourceFolder qCResourceFolder) { TDAPIOLELib.QCResourceFolderFactory qCResourceFolderFactory = qCResourceFolder.QCResourceFolderFactory; return(qCResourceFolderFactory.NewList("")); }