예제 #1
0
        private void TestSelector_SelectedIndexChanged(object sender, EventArgs e)
        {
            int index = TestSelector.SelectedIndex;

            if (index > -1)
            {
                SelectTest(TestSelector.SelectedIndex);
            }
            TestSelector.Refresh();
        }
예제 #2
0
        private void SelectPreviousTest()
        {
            int index = selectedTask - 1;

            if (index < 0)
            {
                index = testsArr.Length - 1;
            }
            SelectTest(index);
            TestSelector.SetSelected(index, true);
            TestSelector.Refresh();
        }
예제 #3
0
        private void SelectNextTest()
        {
            int index = selectedTask + 1;

            if (index >= testsArr.Length)
            {
                index = 0;
            }
            SelectTest(index);
            TestSelector.SetSelected(index, true);
            TestSelector.Refresh();
        }