private void InitializeTimetable() { mTb = new ModelTimetable(); mTb.ReadTimetable(dateTimePicker1.Value, mCategory); tn = new TreeNode(mTb.Timetable.Print()); tn.Name = mTb.Timetable.Name; foreach (var itr in mTb.Timetable.Subs) { LoadTimetableItemSubs(itr, tn); } treeView1.Nodes.Clear(); treeView1.Nodes.Add(tn); treeView1.ExpandAll(); }
private void InitializeTimetable() { mTb = new ModelTimetable(); }