public void initTabsContent() { tabs.clearAllTabs(); foreach (StuList stuList in courseRef.allStulist()) { tabs.addNewTab(stuList.name, stuList.UUID); } }
private void deleteExtra(string extraUUID) { Model.Course course = courseRef; foreach (StuList stuList in course.allStulist()) { foreach (Student stu in stuList.allStudents()) { stu.removeStuExtra(extraUUID); } } course.removeExtra(extraUUID); GlobalStation.shareInstance.librarySave(delegate() { mainGrid.Columns.Remove(mainGrid.Columns[extraUUID]); }, delegate() { GlobalStation.shareInstance.librarysInit(); }); }