示例#1
0
 static void CheckData()
 {
     foreach (var app in Apps)
     {
         for (int i = 0; i < app.Files.Count; i++)
         {
             if (ForbiddenExt.Contains(new FileInfo(app.WorkingReleasePath + Path.DirectorySeparatorChar + app.Files[i].Path).Extension))
             {
                 app.Files.RemoveAt(i);
                 i = -1;
             }
         }
     }
 }
示例#2
0
 void ExecuteRemoveExtention(object ext)
 {
     ForbiddenExt.Remove(ext.ToString());
 }
示例#3
0
 void ExecuteAddExtention(object ext)
 {
     ForbiddenExt.Add(ext.ToString());
 }