private void AppendForCurrent(WordEntryDetail value) { var blanksToInsert = WNum - Words.Count; for (var i = WNum - Words.Count; i > 0; i--) { Words.Add(null); } Words.Add(value); }
public void SetCurrent(WordEntryDetail value) { if (WNum == Words.Count) { Words.Add(value); } else if (WNum < Words.Count) { Words[WNum] = value; } else { AppendForCurrent(value); } }