예제 #1
0
 private void loadPreviousPaths()
 {
     if (Directory.Exists(activeProject.projectFolderPath + "\\" + "paths"))
     {
         string [] fileEntries = Directory.GetFiles(activeProject.projectFolderPath + "\\" + "paths");
         foreach (string fileName in fileEntries)
         {
             if (fileName.LastIndexOf(".xml") != -1)
             {
                 pathNames.addItem(fileName);
             }
             Debug.Log(fileName);
         }
     }
     else
     {
         Directory.CreateDirectory(activeProject.projectFolderPath + "\\" + "paths");
     }
 }
예제 #2
0
 private void scanTPS()
 {
     if (Directory.Exists(activeProject.projectFolderPath + "\\" + "tps"))
     {
         string [] fileEntries = Directory.GetFiles(activeProject.projectFolderPath + "\\" + "tps");
         foreach (string fileName in fileEntries)
         {
             // If its an image file png/jpg add to the list.
             if (fileName.LastIndexOf(".tps") != -1 || fileName.LastIndexOf(".TPS") != -1)
             {
                 tpsNames.addItem(fileName);
             }
             // do something with fileName
             Debug.Log(fileName);
         }
     }
     else
     {
         Directory.CreateDirectory(activeProject.projectFolderPath + "\\" + "tps");
     }
 }