public ProgressEntry InsertProgressEntry(String description) { ProgressEntry NewEntry = new ProgressEntry(this, description ); NewEntry.Index = ListOfProgressEntries.Count; ListOfProgressEntries.Add(NewEntry); return NewEntry; }
public int InsertProgressEntries(List<String> descriptions) { foreach (string description in descriptions) { ProgressEntry NewEntry = new ProgressEntry(this, description); NewEntry.Index = ListOfProgressEntries.Count; ListOfProgressEntries.Add(NewEntry); } return ListOfProgressEntries.Count; }