日期:2014-05-17 浏览次数:20739 次
int y = int.Parse(DateTime.Now.ToString("yyyy"));
List<year> year = new List<year>
{
new year{id=y-2,yearr=y-2},
}
int year=DateTime.Now.AddYears(-5);
for int i=0 i<10;i++
(
combox.items.add(year+i)
)
int year=DateTime.Now.AddYears(-5).Year;
for (int i = 0; i <=10; i++)
{
ComBoBox1.Items.add(year+i);
}