public void OpenDisciplinesGUI() { List <Discipline> disciplines = DisciplineProvider.getAllDisciplines(); DisciplinesGUIForm = new DisciplinesGUI(this); DisciplinesGUIForm.updateDisciplines(disciplines); DisciplinesGUIForm.ShowDialog(); }
public void Save(List <object> saveObjects) { foreach (Object[] saveObject in saveObjects) { DisciplineProvider.createDiscipline ( saveObject[0].ToString(), MeasureProvider.getMeasureById(Convert.ToInt32(saveObject[2])), CategoryProvider.getCategoryById(Convert.ToInt32(saveObject[1])) ); } DisciplinesGUIForm.renderDisciplinesGrid(DisciplineProvider.getAllDisciplines()); }
public List <Discipline> getAllDisciplines() { return(DisciplineProvider.getAllDisciplines()); }