Extracted some pages to their own assembly and finished the artifact display page code

This commit is contained in:
Vincent Allen
2025-10-08 13:08:12 -04:00
parent fd0e6290fe
commit 02c2660b09
626 changed files with 39989 additions and 1553 deletions

View File

@@ -230,4 +230,19 @@
private void ClearDragClass()
=> _dragClass = DefaultDragClass;
public void RemoveFile(string filename)
{
var existingFile = ExistingFiles.Where(f => f.OriginalName == filename).FirstOrDefault();
if (existingFile is not null)
{
ExistingFiles.Remove(existingFile);
}
var file = Files.Where(f => f.Name == filename).FirstOrDefault();
if (file is not null)
{
Files.Remove(file);
}
}
}