/// <summary> /// /// </summary> /// <param name="cat"></param> public void AddCategory(ElementList cat) { if (!categories.Contains(cat)) { cat.Add(this); categories.Add(cat); } }
/// <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); }
public static void AddImage(DataImage d) { Images.Add(d, false); }