Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 public TDAPIOLELib.List GetChildFolderList(TDAPIOLELib.QCResourceFolder qCResourceFolder)
 {
     TDAPIOLELib.QCResourceFolderFactory qCResourceFolderFactory = qCResourceFolder.QCResourceFolderFactory;
     return(qCResourceFolderFactory.NewList(""));
 }