Exemple #1
0
        /// <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());
            }
        }
Exemple #2
0
 protected override void Disable()
 {
     SourceCollection.ForEach(s => s.PropertyChanged -= HandlePropertyChanged);
 }