- removed superfluous parameter from SerializerBase.Save()

- added "Pooling=False" parameter to all Sqlite connection strings to prevent open file locks after closing the connection and to avoid extreme delays when using CloseAllPools()
- C# code refactoring "using var" instead of "using ( ) { }" where possible
This commit is contained in:
Horst Beham
2022-11-29 22:00:16 +01:00
parent 6f3df7044e
commit d361d51b8b
57 changed files with 511 additions and 641 deletions

View File

@@ -391,7 +391,7 @@ class Serializer : SerializerBase
#region Save()
public override void Save(string tvOutputFile)
public override void Save()
{
var fav = this.doc["servicelist"]["favorites"];
var elements = fav.GetElementsByTagName("favorite-item");
@@ -456,8 +456,7 @@ class Serializer : SerializerBase
foreach (XmlNode item in lcn)
fav.AppendChild(item);
doc.Save(tvOutputFile);
this.FileName = tvOutputFile;
doc.Save(this.FileName);
}
#endregion