public static BackgroundTaskHelper GetInstance() { lock (_instanceLocker) { if (_instance == null) { _instance = new BackgroundTaskHelper(); } return _instance; } }
public SettingsVM(Briefcase briefcase, AnimationStarter animationStarter) { lock (_instanceLocker) { _instance = this; _animationStarter = animationStarter; _backgroundTaskHelper = App.BackgroundTaskHelper; RaisePropertyChanged_UI(nameof(BackgroundTaskHelper)); _briefcase = briefcase; RaisePropertyChanged_UI(nameof(Briefcase)); //UpdateUnassignedFields(); } }