日期:2014-05-17 浏览次数:20850 次
switch (n) { case 7: { TextBoxLesson8.Text = LessonName[7]; TextBoxClass8.Text = ClassID[7]; TextBoxNumber8.Text = StuNum[7]; TextBoxTime8.Text = WeekTime[7]; TextBoxWeeks8.Text = Weeks[7]; TextBoxY8.Text = y[7].ToString(); TextBoxStaTime8.Text = StaTimes[7]; } case 6: { TextBoxLesson7.Text = LessonName[6]; TextBoxClass7.Text = ClassID[6]; TextBoxNumber7.Text = StuNum[6]; TextBoxTime7.Text = WeekTime[6]; TextBoxWeeks7.Text = Weeks[6]; TextBoxY7.Text = y[6].ToString(); TextBoxStaTime7.Text = StaTimes[6]; } case 5: { TextBoxLesson6.Text = LessonName[5]; TextBoxClass6.Text = ClassID[5]; TextBoxNumber6.Text = StuNum[5]; TextBoxTime6.Text = WeekTime[5]; TextBoxWeeks6.Text = Weeks[5]; TextBoxY6.Text = y[5].ToString(); TextBoxStaTime6.Text = StaTimes[5]; } case 4: { TextBoxLesson5.Text = LessonName[4]; TextBoxClass5.Text = ClassID[4]; TextBoxNumber5.Text = StuNum[4]; TextBoxTime5.Text = WeekTime[4]; TextBoxWeeks5.Text = Weeks[4]; TextBoxY5.Text = y[4].ToString(); TextBoxStaTime5.Text = StaTimes[4]; } case 3: { TextBoxLesson4.Text = LessonName[3]; TextBoxClass4.Text = ClassID[3]; TextBoxNumber4.Text = StuNum[3]; TextBoxTime4.Text = WeekTime[3]; TextBoxWeeks4.Text = Weeks[3]; TextBoxY4.Text = y[3].ToString(); TextBoxStaTime4.Text = StaTimes[3]; } case 2: { TextBoxLesson3.Text = LessonName[2]; TextBoxClass3.Text = ClassID[2]; TextBoxNumber3.Text = StuNum[2]; TextBoxTime3.Text = WeekTime[2]; TextBoxWeeks3.Text = Weeks[2]; TextBoxY3.Text = y[2].ToString(); TextBoxStaTime3.Text = StaTimes[2]; } case 1: { TextBoxLesson2.Text = LessonName[1]; TextBoxClass2.Text = ClassID[1]; TextBoxNumber2.Text = StuNum[1]; TextBoxTime2.Text = WeekTime[1]; TextBoxWeeks2.Text = Weeks[1]; TextBoxY2.Text = y[1].ToString(); TextBoxStaTime2.Text = StaTimes[1]; } case 0: { TextBoxLesson1.Text = LessonName[0]; TextBoxClass1.Text = ClassID[0]; TextBoxNumber1.Text = StuNum[0]; TextBoxTime1.Text = WeekTime[0]; TextBoxWeeks1.Text = Weeks[0]; TextBoxY1.Text = y[0].ToString();