Exemplo n.º 1
0
        /// <summary>
        /// Get the Tags collection from storage
        /// </summary>
        /// <returns></returns>
        public static async Task GetDataAsync()
        {
            if (TagsCollection == null)
            {
                // Get the current set of tags and form the lookup tables
                TagsCollection = await DbAccess.LoadAsync <Tag>();

                NameLookup      = TagsCollection.ToDictionary(tag => tag.Name);
                ShortNameLookup = TagsCollection.ToDictionary(tag => tag.ShortName);
            }
        }