private void TestSelector_SelectedIndexChanged(object sender, EventArgs e) { int index = TestSelector.SelectedIndex; if (index > -1) { SelectTest(TestSelector.SelectedIndex); } TestSelector.Refresh(); }
private void SelectPreviousTest() { int index = selectedTask - 1; if (index < 0) { index = testsArr.Length - 1; } SelectTest(index); TestSelector.SetSelected(index, true); TestSelector.Refresh(); }
private void SelectNextTest() { int index = selectedTask + 1; if (index >= testsArr.Length) { index = 0; } SelectTest(index); TestSelector.SetSelected(index, true); TestSelector.Refresh(); }