This is an old question which I have come back to trying to make sense of it and improve its quality.
It seems the essence of the question was "Setting a comboxbox index based if an int is odd or even", and it came down to figuring out if an int was odd or even, which has been answered many times on stack, so i will just post a link to a good answer and mark this as a duplicate