Пример #1
0
 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);
 }
Пример #2
0
 public void AddLine(MLineWidget w)
 {
     AddLine(w, LineCount);
 }