public void AddLine(MLineWidget w, int at) { w.SetParent(this); w.SetWidth(width - 2); if (at >= LineCount) { lines.Add(w); } else { lines.Insert(at, w); } selectedIndex = Math.Max(at, LineCount - 1); }
public void AddLine(MLineWidget w) { AddLine(w, LineCount); }