private void subQuestion_essayAnswerTextBox_LostFocus_1(object sender, EventArgs e) { TextBox textBox = (TextBox)sender; int idx; ExamSubQuestionPanel subQuestionPanel = (ExamSubQuestionPanel)textBox.Parent.Parent; idx = subQuestionPanelsList.IndexOf(subQuestionPanel); moveListItems(idx + 1); }
private void subQuestion_essayAnswerLabel_Click_1(object sender, EventArgs e) { Label label = (Label)sender; int idx; ExamSubQuestionPanel subQuestionPanel = (ExamSubQuestionPanel)label.Parent.Parent; idx = subQuestionPanelsList.IndexOf(subQuestionPanel); moveListItems(idx + 1); }