示例#1
0
 private void DayList_SelectedIndexChanged(object sender, EventArgs e)
 {
     HourList.Visible = false;
     HourList.ClearSelected();
     HourList.Items.Clear();
     if (DayList.Text != "")
     {
         if (int.Parse(YearList.Text) == today.Year && int.Parse(MonthList.Text) == today.Month && int.Parse(DayList.Text) == today.Day)
         {
             timeListAdder.Fill_Hour(HourList, today.Hour % 12);
         }
         else
         {
             timeListAdder.Fill_Hour(HourList, 11);
         }
         HourList.Visible = true;
     }
 }