示例#1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="cat"></param>
 public void AddCategory(ElementList cat)
 {
     if (!categories.Contains(cat))
     {
         cat.Add(this);
         categories.Add(cat);
     }
 }
示例#2
0
        /// <summary>
        /// Return a list of all pieces of Data unlisted in any categories other than the index
        /// </summary>
        /// <returns></returns>
        public static ElementList <Data> GetUnlistedData()
        {
            var misc = new ElementList <Data>("Non listés");

            foreach (Data d in DataIndex.Values)
            {
                if (d.Categories.Count == 0)
                {
                    misc.Add(d, false);
                }
            }
            return(misc);
        }
示例#3
0
 public static void AddImage(DataImage d)
 {
     Images.Add(d, false);
 }