mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-29 09:15:33 +00:00
Reworked Publish View
This commit is contained in:
@@ -17,7 +17,9 @@ public class FileList {
|
||||
throw new Exception("Diese Liste kann nur Elemente des Typs " + XMLRoot.Prefix + " enthalten");
|
||||
|
||||
if (_Files == null) _Files = new HashSet<XMLRootDocument>();
|
||||
if (!_Files.Contains(document)) _Files.Add(document);
|
||||
var replacing = _Files.Where(x => x.FileName == document.FileName);
|
||||
if (replacing != null && replacing.Any()) _Files.Remove(replacing.First());
|
||||
_Files.Add(document);
|
||||
}
|
||||
|
||||
public bool Contains(XMLRootDocument doc) {
|
||||
|
||||
Reference in New Issue
Block a user