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
IWorkspaceService.cs
1using System.Collections.ObjectModel;
2using System.ComponentModel;
5
7{
11 public interface IWorkspaceService : INotifyPropertyChanged, ISaveable
12 {
16 ObservableCollection<string> LastWorkspacePaths { get; set; }
17
22 void AddLastWorkspacePath(string path);
23
28
32 bool IsWorkspaceOpen { get; set; }
33
37 bool IsCompletelyNewWorkspace { get; set; }
38
43
48
53
58
63
68
73
78
83
88
95 Task<bool> CloseWorkspace(CancellationToken cancellationToken, bool save = true);
96 }
97}
Interface for a service used to manage a workspace.
Task< bool > CloseWorkspace(CancellationToken cancellationToken, bool save=true)
Close the current workspace (set the current path to string.Empty and the Settings to null)
WorkspaceSettings Settings
Settings for the current workspace.
void ResetPersonsToLoadedState()
Call the IPersonService.ResetToLoadedState
void ResetRacesToLoadedState()
Call the IRaceService.ResetToLoadedState
void ResetCompetitionsToLoadedState()
Call the <see cref="ICompetitionService.ResetToLoadedState" and ICompetitionDistanceRuleService....
bool HasUnsavedChanges_Settings
Unsaved changes exist in the Settings.
bool IsCompletelyNewWorkspace
If true, the workspace wasn't loaded from previously saved files.
void ClearAllLastWorkspacePaths()
Clear all LastWorkspacePaths
void AddLastWorkspacePath(string path)
Add a path to the LastWorkspacePaths
WorkspaceSettings SettingsPersistedInFile
Settings loaded from the file for the current workspace.
bool HasUnsavedChanges_Persons
Unsaved changes exist in the PersonService
void ResetSettingsToLoadedState()
Reset the to the state when the method was called.
bool IsWorkspaceOpen
If true, a workspace is loaded; if false, not workspace is loaded.
bool HasUnsavedChanges_Races
Unsaved changes exist in the RaceService
ObservableCollection< string > LastWorkspacePaths
List with previous workspace paths.
bool HasUnsavedChanges_Competitions
Unsaved changes exist in the <see cref="CompetitionService" or CompetitionDistanceRuleService/>