public void InsertAfter(Row r) { Next.Prev = r; r.Prev = this; r.Next = Next; Next = r; }
/// <summary> /// Creates (introduces) a (full) row by set values /// </summary> /// <param name="y">Insert at</param> /// <param name="values">Values to insert</param> protected void CreateFullRow(int y, int[] values) { Row cur = this.Bottom; for (; y > 0; y--) cur = cur.Next; Row f = new Row(this.Width); f.Values = values; cur.InsertAfter(f); this.Top.Prev.Remove(); }