Manipulating a list with dynamically created controls : <p>Let's say, I have a <code>List&lt;Person&gt; people</code>, where <code>Person</code> is a class containing three strings: a <code>Name</code>, <code>Surname</code> and <code>Age</code>. I also have six dynamically created <code>TextBox</code> controls, that are placed on a <code>Panel</code> control, and have a name assigned to them using a <code>for</code> loop. As well as, dynamically created <code>TextChanged</code> event for said <code>TextBox</code> controls. Currently the <code>List</code> consists of two entries <code>people.Add(new Person { Name = John, Surname = Johnson, Age = 25 });</code> and <code>people.Add(new Person { Name = Jack, Surname = Jackson, Age = 30 });</code>. I need the user to be able to change those <code>List&lt;Person&gt;</code> entries, by inputting text in the corresponding <code>Textbox</code>. So, the first <code>TextBox</code> changes the <code>people[0].Name</code>, second - <code>people[0].Surname</code>, third - <code>people[0].Age</code>, fourth - <code>people[1].Name</code>, and so on...</p>
