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; } } } }
void ExecuteRemoveExtention(object ext) { ForbiddenExt.Remove(ext.ToString()); }
void ExecuteAddExtention(object ext) { ForbiddenExt.Add(ext.ToString()); }