public ClassOption() { InitializeComponent(); schedule = UserData.scheduleClasses[ShareData.num]; textBox1.Text = schedule.getName(); //資料一覧の読み込み for (int i = 0; i < schedule.DocumentSize(); i++) { checkedListBox1.Items.Add(schedule.getDocument(i).getDocumentName(), schedule.getDocument(i).getOpen()); } //時間一覧の読み込み for (int i = 0; i < schedule.TimeSize(); i++) { TimeClass time = schedule.getTime(i); string text = ""; for (int j = 0; j < ShareData.dayofWeek.Length; j++) { if (time.getDay()[j]) { text += ShareData.dayofWeek[j]; } } text += " " + time.getBeginTime().ToShortTimeString() + "~" + time.getEndTime().ToShortTimeString() + " " + time.getRoomName(); checkedListBox2.Items.Add(text); } }
public void RenewCheckList() { checkedListBox1.Items.Clear(); //資料一覧の読み込み for (int i = 0; i < schedule.DocumentSize(); i++) { checkedListBox1.Items.Add(schedule.getDocument(i).getDocumentName(), schedule.getDocument(i).getOpen()); } }