///------------------------------------------------------------------------------------------------- /// <summary> Event handler. Called by btnSend for click events. </summary> /// /// <remarks> Jaege, 17/09/2018. </remarks> /// /// <param name="sender"> Source of the event. </param> /// <param name="e"> Event information. </param> ///------------------------------------------------------------------------------------------------- private void btnSend_Click(object sender, EventArgs e) { InstructorConnection Package = new InstructorConnection(Question.instructorFirstNumber, Question.aOperator, Question.instructorSecondNumber, Question.instructorAnswer); Package.ConnectQuestion(); List = new QuestionsArrayList(Question.instructorFirstNumber, Question.aOperator, Question.instructorSecondNumber, Question.equals, Question.instructorAnswer); List.GetArray(QuestionList); List.SetDataGrid(dataGridArray, QuestionList); List.GetHashTable(QuestionTable, QuestionList); BinaryTree.AddRecursive(Question.instructorAnswer); Root = BinaryTree.SetRoot(BinaryTree); Package.UpdateControlState(btnSend); MyLinkedList.NodeListAddatFront(new Node(Question.instructorAnswer)); }