/// <summary> /// Get the Sources collection from storage /// </summary> /// <returns></returns> public static async Task GetDataAsync() { if (SourceCollection == null) { // Get the current set of sources SourceCollection = await DbAccess.LoadAsync <Source>(); // Set the ScanSource, ScanType, LocalAccess and RemoteAccess fields. SourceCollection.ForEach(source => source.InitialiseAccess()); } }
protected override void Disable() { SourceCollection.ForEach(s => s.PropertyChanged -= HandlePropertyChanged); }