I have this class for Student

```
#region Person

    public class Person
    {
        public string firstName { get; set; }
        public string lastName { get; set; }
        public string Address { get; set; }
        public virtual void GetInfo()
        {
            Console.WriteLine("First Name: {0}", firstName);
            Console.WriteLine("First Name: {0}", lastName);
            Console.WriteLine("Address: {0}", Address);
        }
    }
    #endregion
    class

    #region Student
    public class Student : Person
    {

        public override void GetInfo()
        {
            // Calling the base class GetInfo method: 
            base.GetInfo();
        }
        public void TakeTest()
        {
            throw new NotImplementedException();
        }

        private List<Student> AllStudents = new List<Student>();
        public Student()
        {
            AllStudents.Add(this);

        }
        public List<Student> AllStudentsList
        {
            get
            {
                return AllStudents;
            }
            set
            {
                AllStudents = value;
            }
        }

    }
    #endregion

```

Using WPF, I am going to initiate several students to be inputted in a textbox, first name has its textbox and last name has its textbox also, and create a list collection to store these student objects. I created an event handler to add students to the list collection newStudent.

```
public List<Student> newStudent = new List<Student>();
        public MainWindow()
        {
            InitializeComponent();
        }

        private void btnCreateStudent_Click(object sender, RoutedEventArgs e)
        {
            Student student = new Student();
            student.firstName = txtFirstName.Text;
            student.lastName = txtLastName.Text;
            newStudent.Add(student);

            txtFirstName.Text = "";
            txtLastName.Text = "";

        }

```

My problem is when I try to display it back to the textbox (another event handler) what is stored in the list, the result is not what I expect like first name and last name. How should I implement it to give me the First Name and Last Name of the initiated student.

As a background, since my reputation did not pass the quota to post a picture, everytime I input on the textbox, I click the Create Student button that will add the student name to the list collection. After several students created, I would like them to display the last element in the list to the textbox when I press another button(let's say we call it btnPrevious. I hope someone can help me on this.

This is my another event handler that will display all students in the list.

```
private void btnNext_Click(object sender, RoutedEventArgs e)
        {

            //Student student = new Student();
            //foreach (Student i in student.AllStudentsList)
            //{
            //    MessageBox.Show(i.Name);
            //}
            //MessageBox.Show(student.AllStudentsList[0].ToString());
        }

```