Пример #1
0
        //this is the function for clicking onto the next selection
        private void next_Click(object sender, EventArgs e)
        {
            //set all the pictureboxes to white
            TestingUtils.clearAll(this);

            //test to see if out of bounds
            if (selectedRow >= dataGridList.Rows.Count - 1)
            {
                //set to the very last row
                selectedRow = dataGridList.Rows.Count - 1;

                //call select
                Selectors.select(this);
            }
            //if the selected row is not the last
            selectedRow++;
            Selectors.select(this);
        }
Пример #2
0
        //find the selected stuff in the table
        private void findSelected_Click(object sender, EventArgs e)
        {
            //clear all the picture boxes
            TestingUtils.clearAll(this);

            //turn the selected row a white
            Selectors.select(dataGridList.SelectedRows, this);
            try
            {
                //try to set selectedRow to the current selected Row's index
                selectedRow = dataGridList.SelectedRows[0].Index;
            }
            catch
            {
                //if you did not select this message should display
                maperrorLabel.Visible = true;
                maperrorLabel.Text    = "Please select something";
            }
        }
Пример #3
0
        private void findbtn_Click(object sender, EventArgs e)
        {
            //reset the picture boxes
            TestingUtils.clearAll(this);

            //if the selected row is the last one
            if (selectedRow <= 0)
            {
                //reset to 0
                selectedRow = 0;

                //try to select it
                Selectors.select(this);
            }

            //it is not the last one so deincrement and select
            selectedRow--;
            Selectors.select(this);
        }