Added ReloadSong() to reload a song from disk

This commit is contained in:
Stefan authored and GitHub committed 2020-01-07 09:29:49 +01:00
1 parent b248c4b2bd
commit 791d2293d3
1 file changed
+9 -1
+9 -1
View File
@@ -288,6 +288,14 @@ namespace VocaluxeLib.Songs
return loader.ReadNotes(); return loader.ReadNotes();
} }
public bool ReloadSong()
{
var loader = new CSongLoader(this);
bool retValue = loader.ReadHeader();
retValue = loader.ReadNotes(true);
return retValue;
}
public bool Save() public bool Save()
{ {
return Save(Path.Combine(Folder, FileName)); return Save(Path.Combine(Folder, FileName));
@@ -518,4 +526,4 @@ namespace VocaluxeLib.Songs
ShortEnd.Source = EDataSource.Calculated; ShortEnd.Source = EDataSource.Calculated;
} }
} }
} }