public static StudyUnit LoadStudyUnitInGroup(List <StudyUnitVM> otherStudyUnits) { List <string> usingPathNames = StudyUnitVM.GetAllPathNames(otherStudyUnits); string pathName = QueryOpenPathNameUniq(STUDYUNIT_FILTER, usingPathNames); if (string.IsNullOrEmpty(pathName)) { return(null); } return(Load <StudyUnit>(pathName)); }
public static bool SaveStudyUnit(StudyUnitVM studyUnit, bool queryPathName, List <StudyUnitVM> otherStudyUnits) { List <string> usingPathNames = StudyUnitVM.GetAllPathNames(otherStudyUnits); if (!QuerySavePathNamesUniq(studyUnit, STUDYUNIT_FILTER, queryPathName, usingPathNames)) { return(false); } EDOSerializer.DoSave <StudyUnit>(studyUnit.StudyUnitModel); return(true); }