1using System.Collections.ObjectModel;
2using System.ComponentModel;
95 Task<bool>
CloseWorkspace(CancellationToken cancellationToken,
bool save =
true);
Class holding all workspace settings.
Interface for saveable objects.
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/>