예제 #1
0
 /// <summary>
 /// loads all tags from the database and places them in the available tags list
 /// </summary>
 private void _LoadAllTags()
 {
     try
     {
         List <Tag> dbResults = m_database.SelectAll <Tag>("Tags", new TagCreator());
         foreach (Tag tag in dbResults)
         {
             m_availableTagList.Add(tag);
         }
     }
     catch (Exception crap)
     {
         Debug.WriteLine("Failed to load tags: " + crap.Message);
     }
 }