public void InsertTextBox(int page = -1) // Negative page = at the end of the line; { var num = CountTextBoxes + 1; var ipoint = page; if (ipoint < 0) { ipoint = num; } Console.Write($"Inserting at postion #{ipoint}/{num} "); for (int i = num; i > ipoint; i--) { Console.Write("."); TextBox[i] = TextBox[i - 1]; } Console.Write(" action ... "); TextBox[ipoint] = new DataTextbox(); Console.WriteLine("Ok!"); GUI.WriteLn("Textbox inserted!"); }
public void NewTextBox(int i) { TextBox[i] = new DataTextbox(); }