public Catelog Remove(int index) { Catelog obj = CatelogCollection[index]; CatelogCollection.Remove(obj); return(obj); }
static public Item getTheFirstItem(Catelog catelog) { IEnumerator list = catelog.GetEnumerator(); if (list.MoveNext()) { return((Item)list.Current); } return(null); }
static public Item getTheFirstItem(Config config) { Catelog catelog = getTheFirstCatelog(config); if (catelog != null) { return(getTheFirstItem(catelog)); } else { return(null); } }
static public Item getItemByName(Catelog catelog, string name) { IEnumerator list = catelog.GetEnumerator(); while (list.MoveNext()) { Item it = (Item)list.Current; if (it.name.Equals(name)) { return(it); } } return(null); }
static public Catelog getCatelogByName(Config config, string name) { IEnumerator list = config.GetEnumerator(); while (list.MoveNext()) { Catelog it = (Catelog)list.Current; if (it.name.Equals(name)) { return(it); } } return(null); }
static public void print(Catelog it) { Console.Write("\t<Catelog"); Console.Write(" name=" + it.name); Console.Write(" type=" + it.type); Console.Write(" note=" + it.note); Console.WriteLine(">"); IEnumerator list = it.GetEnumerator(); while (list.MoveNext()) { print((Item)list.Current); } Console.WriteLine("\t<\\Catelog>"); }
public void Remove(Catelog obj) { base.Remove(obj); }
public void Insert(int index, Catelog obj) { base.Insert(index, obj); }
public Catelog Add(Catelog obj) { base.Add(obj); return(obj); }
public Catelog Add(Catelog obj) { return(CatelogCollection.Add(obj)); }