Vereinsmeisterschaften  22aa7800eae54b428d40e835886cefe1fdefdfdf
This is a software that can be used to manage the internal competition of the swimming club Illertissen called "Vereinsmeisterschaften".
Loading...
Searching...
No Matches
ISaveable.cs
2
6public interface ISaveable
7{
11 string PersistentPath { get; }
12
20 Task<bool> Load(string path, CancellationToken cancellationToken);
21
28 Task<bool> Save(CancellationToken cancellationToken, string path = "");
29
34
38 event EventHandler OnFileFinished;
39
44 bool HasUnsavedChanges { get; }
45}
EventHandler OnFileFinished
Event that is raised when the file operation is finished.
Definition ISaveable.cs:38
Task< bool > Save(CancellationToken cancellationToken, string path="")
Save to a file.
ProgressDelegate OnFileProgress
Event that is raised when the file operation progress changes.
Definition ISaveable.cs:33
Task< bool > Load(string path, CancellationToken cancellationToken)
Load from the given file This is using a separate Task because the file possibly can be large.
bool HasUnsavedChanges
Check if there are unsave changes.
Definition ISaveable.cs:44
delegate void ProgressDelegate(object sender, float progress, string currentStep="")
Delegate void for progress changes.