in the choose_year()
method you have
int? year= (int?)chooseyear.ExecuteScalar();
the int?
before means you are declaring another variable to hold the value of the year the code that you you want is probably this
Object mayBeNullYear = chooseyear.ExecuteScalar();
if(mayBeNullYear!=null)
this.year= (int)mayBeNullYear;