private void btnExecute_Click(object sender, EventArgs e) { DoublyLinkedList dll = new DoublyLinkedList(); //add new nodes dll.AddNode("Tom"); dll.AddNode("Jack"); dll.AddNode("Mary"); //print nodes txtOutput.Text = dll.PrintNode(); }