public void RemoveYndFile(YndFile ynd) { if (ynd == null) { return; } var relpath = GetRelativePath(ynd.FilePath); if (string.IsNullOrEmpty(relpath)) { relpath = ynd.Name; } YndFiles.Remove(ynd); YndFilenames.Remove(relpath); HasChanged = true; }